aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.pluggins.vim1
-rwxr-xr-x.xinitrc3
-rw-r--r--.zsh_aliases2
-rw-r--r--xmonad.hs3
4 files changed, 4 insertions, 5 deletions
diff --git a/.pluggins.vim b/.pluggins.vim
index 49c501d..f5b2a4b 100644
--- a/.pluggins.vim
+++ b/.pluggins.vim
@@ -15,6 +15,7 @@ call plug#begin()
Plug 'junegunn/goyo.vim' " generate tags in project root
"
" Plug 'easymotion/vim-easymotion' " TODO very intresting
+ Plug 'skammer/vim-css-color'
" markdown preview in browser
diff --git a/.xinitrc b/.xinitrc
index d1a873d..6a626a7 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -4,8 +4,5 @@ echo 'Starting redshift'
redshift -c /home/charles/.config/redshift.conf &
echo 'Starting dunst'
dunst &
-
xset r rate 300 40
-
-echo 'Starting XMonad'
exec xmonad
diff --git a/.zsh_aliases b/.zsh_aliases
index f9b32d0..0464fdb 100644
--- a/.zsh_aliases
+++ b/.zsh_aliases
@@ -115,7 +115,7 @@ alias bton='echo power on | bluetoothctl'
alias btoff='echo power off | bluetoothctl'
# pdf selector
-alias openpdf='zathura `ls -1 *.pdf | dmenu` &'
+# alias pdf-open="zathura \$(echo $HOME/Documents/*.pdf | tr ' ' '\\n' | dmenu)"
alias cagob='RUSTFLAGS="$RUSTFLAGS -A dead_code" cargo build'
alias cagor='RUSTFLAGS="$RUSTFLAGS -A dead_code" cargo run'
diff --git a/xmonad.hs b/xmonad.hs
index 578868b..03fb74f 100644
--- a/xmonad.hs
+++ b/xmonad.hs
@@ -24,7 +24,7 @@ main = xmonad $ desktopConfig
, focusedBorderColor = "#bbc5ff"
, terminal = "st"
, layoutHook = myLayouts
- , manageHook = myManageHook
+ , manageHook = myManageHook
, modMask = mod4Mask -- mod key to super
, borderWidth = 1
, focusFollowsMouse = False -- don't change window based on mouse position (need to click)
@@ -50,6 +50,7 @@ myKeys = [ ("<XF86AudioRaiseVolume>", spawn "~/bin/volume-ctl up")
, ("M-o", spawn "~/bin/project-open")
, ("M-m", spawn "st -e mocp")
, ("M-S-d", spawn "notify-send \"$(date +\"%H:%M %A %d/%m/%Y %B\")\"")
+ , ("M-S-b", spawn "notify-send \"battery: $(cat /sys/class/power_supply/BAT0/capacity)\"")
, ("M-q", spawn "notify-send Restart" >> spawn restartCmd)
, ("M-S-q", confirm "Are you sure you want to shutdown?" $ io (exitWith ExitSuccess))
]