updates across a collection of things

This commit is contained in:
Solomon Laing 2022-07-19 15:22:22 +09:30
parent eb92aa330a
commit e4648c2f63
5 changed files with 23 additions and 12 deletions

View File

@ -94,17 +94,17 @@ cmd copyto ${{
}} }}
cmd trash ${{ cmd trash ${{
files=$(printf "$fx" | tr '\n' ';') files=$(printf "$fx" | tr '\n' ';')
while [ "$files" ]; do while [ "$files" ]; do
file=${files%%;*} file=${files%%;*}
eval trash-put "$(basename "$file")" trash-put "$(basename "$file")"
if [ "$files" = "$file" ]; then if [ "$files" = "$file" ]; then
files='' files=''
else else
files="${files#*;}" files="${files#*;}"
fi fi
done done
}} }}
cmd restore_trash ${{ cmd restore_trash ${{

View File

@ -64,6 +64,10 @@ set noshowcmd
map <C-k> <C-w>k map <C-k> <C-w>k
map <C-l> <C-w>l map <C-l> <C-w>l
" Add C-c and C-p to get stuff in and out of + buffer (if using gvim)
vnoremap <C-c> "+y
map <C-p> "+p
" Replace ex mode with gq " Replace ex mode with gq
map Q gq map Q gq
@ -105,6 +109,8 @@ set noshowcmd
" Run xrdb whenever Xdefaults or Xresources are updated. " Run xrdb whenever Xdefaults or Xresources are updated.
autocmd BufRead,BufNewFile Xresources,Xdefaults,xresources,xdefaults set filetype=xdefaults autocmd BufRead,BufNewFile Xresources,Xdefaults,xresources,xdefaults set filetype=xdefaults
autocmd BufWritePost Xresources,Xdefaults,xresources,xdefaults !xrdb % autocmd BufWritePost Xresources,Xdefaults,xresources,xdefaults !xrdb %
" Recompile xmonad on edit, also on xmobar edits
autocmd BufWritePost ~/.xmonad/xmonad.hs,~/.config/xmobar/xmobar-main.hs,~/.config/xmobar/xmobar-sub.hs,~/.config/xmobar/xmobar-single.hs !xmonad --restart
" Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. " Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable.
if &diff if &diff

View File

@ -9,6 +9,8 @@ setxkbmap dvorak &
# compositor # compositor
picom --experimental-backend & picom --experimental-backend &
redshift-gtk -l 34.92866:138.59863 &
# cursor # cursor
xsetroot -cursor_name left_ptr xsetroot -cursor_name left_ptr

View File

@ -1,5 +1,5 @@
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/.local/bin:$PATH
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="/home/solomon/.oh-my-zsh" export ZSH="/home/solomon/.oh-my-zsh"

View File

@ -1,5 +1,6 @@
-- --
-- Xmonad config for Solomon Laing -- Xmonad config for Solomon Laing
-- Based heavily on the work of Derek Taylor (DistroTube)
-- --
-- Base -- Base
@ -69,7 +70,7 @@ import XMonad.Util.SpawnOnce
-- A simple way to switch between desktop and laptop related things -- A simple way to switch between desktop and laptop related things
isLaptop :: Bool isLaptop :: Bool
isLaptop = True isLaptop = False
--THEME --THEME
@ -368,6 +369,8 @@ myStandardEZKeys =
, ("S-<XF86AudioLowerVolume>", spawn "dec-source-volume") -- decrease input volume , ("S-<XF86AudioLowerVolume>", spawn "dec-source-volume") -- decrease input volume
, ("S-<XF86AudioRaiseVolume>", spawn "inc-source-volume") -- increase input volume , ("S-<XF86AudioRaiseVolume>", spawn "inc-source-volume") -- increase input volume
, ("S-<XF86AudioMute>", spawn "toggle-source-mute") -- toggle input mute , ("S-<XF86AudioMute>", spawn "toggle-source-mute") -- toggle input mute
, ("<XF86AudioPlay>", spawn "playerctl play-pause") -- toggle play/pause for compatible media
, ("<XF86AudioPause>", spawn "playerctl play-pause") -- toggle play/pause for compatible media
--NOTE extras --NOTE extras
, ("M-S-/", spawn "xmonad-keys-help") -- show keybinds , ("M-S-/", spawn "xmonad-keys-help") -- show keybinds