Skip to content

Commit

Permalink
emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rdonL committed Aug 12, 2021
1 parent 9ed7549 commit 65b978d
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 222 deletions.
39 changes: 39 additions & 0 deletions .config/colorls/dark_colors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Main Colors
unrecognized_file: "#44475a"
recognized_file: "#F8F8F2"
dir: "#bd93f9"

# Link
dead_link: "#ff5555"
link: "#8be9fd"

# Access Modes
write: "#ff79c6"
read: "#bd93f9"
exec: "#8be9fd"
no_access: "#ff5555"

# Age
hour_old: "#6272a4"
day_old: "#44475a"
no_modifier: "#f8f8f2"

# File Size
file_large: "#ff5555"
file_medium: "#ffb86c"
file_small: "#f1fa8c"

# Random
report: "#f1fa8c"
user: "#8be9fd"
tree: "#44475a"
empty: "#6272a4"
error: "#ff5555"
normal: "#f8f8f2"

# Git
addition: "#8be9fd"
modification: "#f1fa8c"
deletion: "#ff5555"
untracked: "#ffb86c"
unchanged: "#50fa7b"
33 changes: 33 additions & 0 deletions .config/fish/conf.d/dracula.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Dracula Color Palette
set -l foreground f8f8f2
set -l selection 44475a
set -l comment 6272a4
set -l red ff5555
set -l orange ffb86c
set -l yellow f1fa8c
set -l green 50fa7b
set -l purple bd93f9
set -l cyan 8be9fd
set -l pink ff79c6

# Syntax Highlighting Colors
set -g fish_color_normal $foreground
set -g fish_color_command $cyan
set -g fish_color_keyword $pink
set -g fish_color_quote $yellow
set -g fish_color_redirection $foreground
set -g fish_color_end $orange
set -g fish_color_error $red
set -g fish_color_param $purple
set -g fish_color_comment $comment
set -g fish_color_selection --background=$selection
set -g fish_color_search_match --background=$selection
set -g fish_color_operator $green
set -g fish_color_escape $pink
set -g fish_color_autosuggestion $comment

# Completion Pager Colors
set -g fish_pager_color_progress $comment
set -g fish_pager_color_prefix $cyan
set -g fish_pager_color_completion $foreground
set -g fish_pager_color_description $comment
20 changes: 18 additions & 2 deletions .config/fish/config.fish
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
if status is-interactive
paleofetch
pfetch
keychain --eval --agents ssh --quiet -Q id_rsa | source
keychain --eval --agents gpg --quiet --gpg2 -Q | source
end

set -g fish_greeting
fish_vi_key_bindings
bind -M insert -m default jk backward-char force-repaint
bind " " expand-abbr or self-insert
set -U fish_user_paths ~/.emacs.d/bin $fish_user_paths

export GOPATH=$HOME/dev/go


alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias ls='colorls --dark'
alias ls='colorls --dark --sd --dark'
alias cat='bat --theme=Dracula --style=plain'
alias emacs='devour emacsclient -c'

abbr --add --global p 'paru'
abbr --add --global py 'paru -Syy'
abbr --add --global pc 'paru -c'
abbr --add --global dc 'docker-compose'
abbr --add --global dcb 'docker-compose build --no-cache'
abbr --add --global dcd 'docker-compose down -v'
abbr --add --global dcub 'docker-compose up --build -d'
abbr --add --global dcu 'docker-compose up -d'
abbr --add --global dcs 'docker container stop (docker container ls -aq)'
abbr --add --global dcrm 'docker container rm -f (docker container ls -aq)'
abbr --add --global dirm 'docker image rm -f (docker image ls -q)'
abbr --add --global df 'dotfiles'
abbr --add --global v 'vim'
abbr --add --global e 'emacs'
Expand Down
64 changes: 38 additions & 26 deletions .config/qtile/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
os.path.expanduser("~/.config/scripts/wait.sh"),
"/usr/bin/lxpolkit",
"sudo tzupdate",
"insync start",
]


Expand Down Expand Up @@ -104,8 +105,8 @@ def get_color(key):
lazy.run_extension(
extension.CommandSet(
commands={
" Connect to Windows LTSC": 'virsh start win-vm & virt-viewer -f --domain-name win-vm & notify-send " VM connected"',
" Disconnect from Windows LTSC": 'virsh managedsave win-vm & killall virt-viewer & killall libvirtd & notify-send " VM suspended"',
" Connect to Windows LTSC": 'virsh start win & virt-viewer -f --domain-name win & notify-send " VM connected"',
" Disconnect from Windows LTSC": 'virsh managedsave win & killall virt-viewer & killall libvirtd & notify-send " VM suspended"',
},
dmenu_prompt="Virtual Machines",
dmenu_ignorecase=True,
Expand Down Expand Up @@ -227,14 +228,16 @@ def get_color(key):
]

groups = [
Group("1", label="", layout="stack", spawn=autostart),
Group("1", label="", layout="monadwide", spawn=autostart),
Group("2", label="", layout="monadtall"),
Group("3", label="", layout="ratiotile"),
Group("4", label="", layout="monadtall"),
Group("5", label="", layout="monadtall"),
Group("6", label="", layout="monadtall"),
Group("7", label="", layout="stack"),
Group("8", label="", layout="stack"),
Group(
"7", label="", layout="monadtall", matches=[Match(wm_class="transmission-gtk")]
),
Group("8", label="", layout="monadtall"),
Group(
"9",
label="",
Expand Down Expand Up @@ -414,13 +417,13 @@ def get_widgets():
),
custom_widget.ThermalSensor(foreground=get_color("cyan")),
widget.Memory(format=" {MemPercent:2.0f}%", foreground=get_color("primary")),
widget.NvidiaSensors(format=" {temp}°C", foreground=get_color("green")),
widget.Backlight(
format=" {percent:2.0%}",
foreground=get_color("pink"),
# background=get_color("grey"),
backlight_name="intel_backlight",
),
# widget.NvidiaSensors(format=" {temp}°C", foreground=get_color("green")),
# widget.Backlight(
# format=" {percent:2.0%}",
# foreground=get_color("pink"),
# background=get_color("grey"),
# backlight_name="intel_backlight",
# ),
# custom_widget.Volume(
# width=25,
# foreground=get_color("yellow"),
Expand All @@ -439,30 +442,39 @@ def get_widgets():
length=10,
# background=get_color("grey"),
),
widget.Battery(
format="{char} {percent:2.0%}",
foreground=get_color("green"),
unknown_char="",
charge_char="",
empty_char="",
discharge_char="",
full_char="",
low_percentage=0.2,
notify_below=0.2,
update_interval=0.2,
),
# widget.Battery(
# format="{char} {percent:2.0%}",
# foreground=get_color("green"),
# unknown_char="",
# charge_char="",
# empty_char="",
# discharge_char="",
# full_char="",
# low_percentage=0.2,
# notify_below=0.2,
# update_interval=0.2,
# ),
widget.Clock(foreground=get_color("orange"), format="%d %b %a %l:%M%p"),
widget.Systray(padding=15),
widget.Spacer(length=10),
]


# if get_monitors() == 2:
screens = [
Screen(
top=bar.Bar(get_widgets(), 32, background=get_color("background"), opacity=0.9)
)
for _ in range(len(get_monitors()))
),
Screen(),
]
# else:
# screens = [
# Screen(
# top=bar.Bar(
# get_widgets(), 32, background=get_color("background"), opacity=0.9
# )
# )
# ]


# @hook.subscribe.screen_change
Expand Down
Loading

0 comments on commit 65b978d

Please sign in to comment.