Various shortcuts and compton fixes

This commit is contained in:
Daniel Flanagan 2019-05-08 13:31:23 -05:00
parent 3249d88593
commit c58437221a
11 changed files with 34 additions and 15 deletions

View file

@ -2,10 +2,10 @@ shadow = true;
no-dnd-shadow = true; no-dnd-shadow = true;
no-dock-shadow = true; no-dock-shadow = true;
clearshadow = true; clearshadow = true;
shadow-radius = 7; shadow-radius = 20;
shadow-offset-x = -10; shadow-offset-x = -20;
shadow-offset-y = -7; shadow-offset-y = -15;
shadow-opacity = 1.0; shadow-opacity = 0.5;
shadow-red = 0.0; shadow-red = 0.0;
shadow-green = 0.0; shadow-green = 0.0;
shadow-blue = 0.0; shadow-blue = 0.0;
@ -21,7 +21,7 @@ fading = true;
fade-in-step = 0.06; fade-in-step = 0.06;
fade-out-step = 0.06; fade-out-step = 0.06;
alpha-step = 0.1; alpha-step = 0.1;
inactive-dim = 0.5; inactive-dim = 0.2;
focus-exclude = [ "n:e:rofi" ] focus-exclude = [ "n:e:rofi" ]

View file

@ -158,7 +158,7 @@ super + t
super + shift + t super + shift + t
compton-trans -c -o 100 compton-trans -c -o 100
# swap sxhkx config with an alternate file and reload the new one # swap sxhkd config with an alternate file and reload the new one
# super + shift + alt + ctrl + r # super + shift + alt + ctrl + r
# if [ -e ~/.config/sxhkd/altsxhkdrc ]; then mv ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/origsxhkdrc && mv ~/.config/sxhkd/altsxhkdrc ~/.config/sxhkd/sxhkdrc && pkill -USR1 -x sxhkd; fi # if [ -e ~/.config/sxhkd/altsxhkdrc ]; then mv ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/origsxhkdrc && mv ~/.config/sxhkd/altsxhkdrc ~/.config/sxhkd/sxhkdrc && pkill -USR1 -x sxhkd; fi
@ -166,13 +166,13 @@ super + shift + t
super + Return super + Return
urxvtc urxvtc
# spawn a rock-solid and reliable terminal # spawn a rock-solid and reliable terminal for when I break things
super + alt + Return super + alt + Return
urxvtc urxvt
# spawn a floating terminal # spawn a floating terminal
super + shift + Return super + shift + Return
bspc rule -a '*' -o state=floating && urxvtc bspc rule -a '*' -o state=floating && "urxvtc"
# spawn the app launcher # spawn the app launcher
super + space super + space

3
scripts/bin/N Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
nf "${1}.md"

View file

@ -9,6 +9,6 @@ bargs=""
# pager args # pager args
pargs="-R" pargs="-R"
[ $1 = "s" ] && bargs="$bargs --search" && shift [ "$1" = "s" ] && bargs="$bargs --search" && shift
"${bbin}" $bargs "$*" | "${pbin}" $pargs "${bbin}" $bargs "$*" | "${pbin}" $pargs

8
scripts/bin/clipshot Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
import ~/.ss.png
chmod 700 ~/.ss.png
< ~/.ss.png xclip -t image/png -i -selection clipboard
< ~/.ss.png xclip -t image/png -i -selection primary
< ~/.ss.png xclip -t image/png -i -selection secondary
< ~/.ss.png xclip -t image/png -i -selection buffer-cut

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SUBDIR="${2:-}" N "$(date +%Y-%m-%d)_${1}"
mkdir -p "$NOTES_PATH/$SUBDIR"
"$EDITOR" "$NOTES_PATH/$SUBDIR/$(date +%Y-%m-%d)_$1.md"

5
scripts/bin/nf Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
SUBDIR="${2:-}"
mkdir -p "$NOTES_PATH/$SUBDIR"
"$EDITOR" "$NOTES_PATH/$SUBDIR/$1"

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
"$EDITOR" "$NOTES_PATH/_scratch.md" N _scratch

3
scripts/bin/term Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
"$TERMINAL"

View file

@ -50,7 +50,7 @@ alias tu="tmux attach -t utils || tmux new -s utils"
alias tdf="tmux attach -t dotfiles || tmux new -s dotfiles -c \"\$DOTFILES_PATH\"" alias tdf="tmux attach -t dotfiles || tmux new -s dotfiles -c \"\$DOTFILES_PATH\""
alias tmon="tmux attach -t monitoring || tmux new -s monitoring" alias tmon="tmux attach -t monitoring || tmux new -s monitoring"
alias tcom="tmux attach -t comms || tmux new -s comms" alias tcom="tmux attach -t comms || tmux new -s comms"
alias tn="tmux attach -t notes || tmux new -s notes" alias tn="tmux attach -t notes || tmux new -s notes -c \"\$NOTES_PATH\""
# git aliases # git aliases
# TODO: make these git aliases in the gitconfig? # TODO: make these git aliases in the gitconfig?

View file

@ -77,6 +77,8 @@ if command -v nvim >/dev/null 2>&1; then
export EDITOR="nvim" export EDITOR="nvim"
fi fi
export TERMINAL="urxvtc"
export BROWSER="firefox-developer-edition" export BROWSER="firefox-developer-edition"
# unlimited history # unlimited history