From 67e6c05844059392e7feee92ee480baa44398c56 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Tue, 12 May 2020 22:26:28 -0500 Subject: [PATCH] Pushing some dotfile edits. --- .config/alacritty/alacritty.yml | 54 +++++++++++---------------------- .config/xmobar/xmobarrc0 | 19 +++++++++--- .config/xmobar/xmobarrc1 | 19 +++++++++--- .config/xmobar/xmobarrc2 | 19 +++++++++--- .xmonad/xmonad.hs | 2 +- 5 files changed, 64 insertions(+), 49 deletions(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 27e86bc..acc85e3 100755 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -531,40 +531,22 @@ background_opacity: 1.0 # binding with the same triggers is defined. To unset a default binding, it can # be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for # a no-op if you do not wish to receive input characters for that binding. -#key_bindings: - # (Windows, Linux, and BSD only) - #- { key: V, mods: Control|Shift, action: Paste } - #- { key: C, mods: Control|Shift, action: Copy } - #- { key: Insert, mods: Shift, action: PasteSelection } - #- { key: Key0, mods: Control, action: ResetFontSize } - #- { key: Equals, mods: Control, action: IncreaseFontSize } - #- { key: Add, mods: Control, action: IncreaseFontSize } - #- { key: Subtract, mods: Control, action: DecreaseFontSize } - #- { key: Minus, mods: Control, action: DecreaseFontSize } +key_bindings: + # (Windows, Linux, and BSD only) + - { key: V, mods: Control|Shift, action: Paste } + - { key: C, mods: Control|Shift, action: Copy } + - { key: Insert, mods: Shift, action: PasteSelection } + - { key: Key0, mods: Control, action: ResetFontSize } + - { key: Equals, mods: Control, action: IncreaseFontSize } + - { key: Add, mods: Control, action: IncreaseFontSize } + - { key: Subtract, mods: Control, action: DecreaseFontSize } + - { key: Minus, mods: Control, action: DecreaseFontSize } - # (Windows only) - #- { key: Return, mods: Alt, action: ToggleFullscreen } - - # (macOS only) - #- { key: Key0, mods: Command, action: ResetFontSize } - #- { key: Equals, mods: Command, action: IncreaseFontSize } - #- { key: Add, mods: Command, action: IncreaseFontSize } - #- { key: Minus, mods: Command, action: DecreaseFontSize } - #- { key: K, mods: Command, action: ClearHistory } - #- { key: K, mods: Command, chars: "\x0c" } - #- { key: V, mods: Command, action: Paste } - #- { key: C, mods: Command, action: Copy } - #- { key: H, mods: Command, action: Hide } - #- { key: M, mods: Command, action: Minimize } - #- { key: Q, mods: Command, action: Quit } - #- { key: W, mods: Command, action: Quit } - #- { key: F, mods: Command|Control, action: ToggleFullscreen } - - #- { key: Paste, action: Paste } - #- { key: Copy, action: Copy } - #- { key: L, mods: Control, action: ClearLogNotice } - #- { key: L, mods: Control, chars: "\x0c" } - #- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt } - #- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt } - #- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt } - #- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt } + - { key: Paste, action: Paste } + - { key: Copy, action: Copy } + - { key: L, mods: Control, action: ClearLogNotice } + - { key: L, mods: Control, chars: "\x0c" } + - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt } + - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt } + - { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt } + - { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt } diff --git a/.config/xmobar/xmobarrc0 b/.config/xmobar/xmobarrc0 index 36ae26a..a13fce0 100755 --- a/.config/xmobar/xmobarrc0 +++ b/.config/xmobar/xmobarrc0 @@ -12,16 +12,27 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t , allDesktops = True , persistent = True , iconRoot = "/home/dt/.xmonad/xpm/" -- default: "." - , commands = [ Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + , commands = [ + -- Time and date + Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + -- Network up and down , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 10 + -- Cpu usage in percent , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 10 + -- Ram used number and percent , Run Memory ["-t", "\xf233 mem: M (%)"] 10 - , Run DiskU [("/", "\xf0c7 hdd: free")] [] 3600 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Runs custom script to check for pacman updates. + -- This script is in my dotfiles repo in .local/bin. , Run Com "pacupdate" [] "" 3600 - , Run Com "kernel" [] "" 3600 + -- Runs a standard shell command 'uname -r' to get kernel version + , Run Com "uname" ["-r"] "" 3600 + -- Prints out the left side items such as workspaces, layout, etc. + -- The workspaces are 'clickable' in my configs. , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" - , template = " | %UnsafeStdinReader% }{  %kernel%| %cpu% | %memory% | %disku% | %enp6s0% |  %pacupdate%| %date% " + , template = " | %UnsafeStdinReader% }{  %uname%| %cpu% | %memory% | %disku% | %enp6s0% |  %pacupdate%| %date% " } diff --git a/.config/xmobar/xmobarrc1 b/.config/xmobar/xmobarrc1 index 36ae26a..a13fce0 100755 --- a/.config/xmobar/xmobarrc1 +++ b/.config/xmobar/xmobarrc1 @@ -12,16 +12,27 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t , allDesktops = True , persistent = True , iconRoot = "/home/dt/.xmonad/xpm/" -- default: "." - , commands = [ Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + , commands = [ + -- Time and date + Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + -- Network up and down , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 10 + -- Cpu usage in percent , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 10 + -- Ram used number and percent , Run Memory ["-t", "\xf233 mem: M (%)"] 10 - , Run DiskU [("/", "\xf0c7 hdd: free")] [] 3600 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Runs custom script to check for pacman updates. + -- This script is in my dotfiles repo in .local/bin. , Run Com "pacupdate" [] "" 3600 - , Run Com "kernel" [] "" 3600 + -- Runs a standard shell command 'uname -r' to get kernel version + , Run Com "uname" ["-r"] "" 3600 + -- Prints out the left side items such as workspaces, layout, etc. + -- The workspaces are 'clickable' in my configs. , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" - , template = " | %UnsafeStdinReader% }{  %kernel%| %cpu% | %memory% | %disku% | %enp6s0% |  %pacupdate%| %date% " + , template = " | %UnsafeStdinReader% }{  %uname%| %cpu% | %memory% | %disku% | %enp6s0% |  %pacupdate%| %date% " } diff --git a/.config/xmobar/xmobarrc2 b/.config/xmobar/xmobarrc2 index 36ae26a..a13fce0 100755 --- a/.config/xmobar/xmobarrc2 +++ b/.config/xmobar/xmobarrc2 @@ -12,16 +12,27 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t , allDesktops = True , persistent = True , iconRoot = "/home/dt/.xmonad/xpm/" -- default: "." - , commands = [ Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + , commands = [ + -- Time and date + Run Date "\xf133 %b %d %Y (%H:%M)" "date" 10 + -- Network up and down , Run Network "enp6s0" ["-t", "\xf0aa kb \xf0ab kb"] 10 + -- Cpu usage in percent , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 10 + -- Ram used number and percent , Run Memory ["-t", "\xf233 mem: M (%)"] 10 - , Run DiskU [("/", "\xf0c7 hdd: free")] [] 3600 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Runs custom script to check for pacman updates. + -- This script is in my dotfiles repo in .local/bin. , Run Com "pacupdate" [] "" 3600 - , Run Com "kernel" [] "" 3600 + -- Runs a standard shell command 'uname -r' to get kernel version + , Run Com "uname" ["-r"] "" 3600 + -- Prints out the left side items such as workspaces, layout, etc. + -- The workspaces are 'clickable' in my configs. , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" - , template = " | %UnsafeStdinReader% }{  %kernel%| %cpu% | %memory% | %disku% | %enp6s0% |  %pacupdate%| %date% " + , template = " | %UnsafeStdinReader% }{  %uname%| %cpu% | %memory% | %disku% | %enp6s0% |  %pacupdate%| %date% " } diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index aec8ec6..f5f8e07 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -248,7 +248,7 @@ myKeys = , ("M-", spawn (myTerminal ++ " -e fish")) --- Dmenu Scripts (Alt+Ctr+Key) - , ("M-S-", spawn "dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'") + , ("M-S-", spawn "dmenu_run") , ("M1-C-e", spawn "./.dmenu/dmenu-edit-configs.sh") , ("M1-C-h", spawn "./.dmenu/dmenu-hugo.sh") , ("M1-C-m", spawn "./.dmenu/dmenu-sysmon.sh")