diff options
| -rw-r--r-- | .pluggins.vim | 1 | ||||
| -rwxr-xr-x | .xinitrc | 3 | ||||
| -rw-r--r-- | .zsh_aliases | 2 | ||||
| -rw-r--r-- | .zshrc | 2 | ||||
| -rwxr-xr-x | bin/project-open | 9 | ||||
| -rw-r--r-- | xmonad.hs | 3 |
6 files changed, 10 insertions, 10 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 @@ -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 e11b209..71a4b9f 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' @@ -102,7 +102,7 @@ tabs 4 export LFS=/mnt -export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$DOTDIR/bin" +export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$DOTDIR/bin:$HOME/.local/bin" # export PATH="$PATH:$HOME/.vim/plugged/vim-superman/bin" export GPG_TTY=$(tty) # fixing gpg fatal error about tty diff --git a/bin/project-open b/bin/project-open index 955d31d..adb27a4 100755 --- a/bin/project-open +++ b/bin/project-open @@ -34,12 +34,13 @@ else "clone") while [ -z "$remote_choice" ] do - remote_choice=$(printf 'github.com\ncacharle.xyz\nother' | dmenu -p "Remote location") + remote_choice=$(printf 'github.com\ncacharle.xyz\nclipboard\nother' | dmenu -p "Remote location") done case "$remote_choice" in - "github.com") prefix='git@github.com:cacharle/' ;; - "cacharle.xyz") prefix='git@cacharle.xyz:/srv/git/' ;; - "other") ;; + github.com) prefix='git@github.com:cacharle/' ;; + cacharle.xyz) prefix='git@cacharle.xyz:/srv/git/' ;; + clipboard) dest="$(xclip -selection clipboard -o)" ;; + other) ;; esac url="$prefix$(echo "$dest" | dmenu -p "Enter repository url: $prefix")" st -e /bin/sh -c "git clone --recursive '$url' '$dest_path' && cd '$dest_path' && exec $SHELL" || @@ -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)) ] |
