Various shortcuts and compton fixes
This commit is contained in:
parent
3249d88593
commit
c58437221a
|
@ -2,10 +2,10 @@ shadow = true;
|
|||
no-dnd-shadow = true;
|
||||
no-dock-shadow = true;
|
||||
clearshadow = true;
|
||||
shadow-radius = 7;
|
||||
shadow-offset-x = -10;
|
||||
shadow-offset-y = -7;
|
||||
shadow-opacity = 1.0;
|
||||
shadow-radius = 20;
|
||||
shadow-offset-x = -20;
|
||||
shadow-offset-y = -15;
|
||||
shadow-opacity = 0.5;
|
||||
shadow-red = 0.0;
|
||||
shadow-green = 0.0;
|
||||
shadow-blue = 0.0;
|
||||
|
@ -21,7 +21,7 @@ fading = true;
|
|||
fade-in-step = 0.06;
|
||||
fade-out-step = 0.06;
|
||||
alpha-step = 0.1;
|
||||
inactive-dim = 0.5;
|
||||
inactive-dim = 0.2;
|
||||
|
||||
focus-exclude = [ "n:e:rofi" ]
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ super + t
|
|||
super + shift + t
|
||||
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
|
||||
# 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
|
||||
urxvtc
|
||||
|
||||
# spawn a rock-solid and reliable terminal
|
||||
# spawn a rock-solid and reliable terminal for when I break things
|
||||
super + alt + Return
|
||||
urxvtc
|
||||
urxvt
|
||||
|
||||
# spawn a floating terminal
|
||||
super + shift + Return
|
||||
bspc rule -a '*' -o state=floating && urxvtc
|
||||
bspc rule -a '*' -o state=floating && "urxvtc"
|
||||
|
||||
# spawn the app launcher
|
||||
super + space
|
||||
|
|
3
scripts/bin/N
Executable file
3
scripts/bin/N
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
nf "${1}.md"
|
|
@ -9,6 +9,6 @@ bargs=""
|
|||
# pager args
|
||||
pargs="-R"
|
||||
|
||||
[ $1 = "s" ] && bargs="$bargs --search" && shift
|
||||
[ "$1" = "s" ] && bargs="$bargs --search" && shift
|
||||
|
||||
"${bbin}" $bargs "$*" | "${pbin}" $pargs
|
||||
|
|
8
scripts/bin/clipshot
Executable file
8
scripts/bin/clipshot
Executable 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
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SUBDIR="${2:-}"
|
||||
mkdir -p "$NOTES_PATH/$SUBDIR"
|
||||
"$EDITOR" "$NOTES_PATH/$SUBDIR/$(date +%Y-%m-%d)_$1.md"
|
||||
N "$(date +%Y-%m-%d)_${1}"
|
||||
|
|
5
scripts/bin/nf
Executable file
5
scripts/bin/nf
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SUBDIR="${2:-}"
|
||||
mkdir -p "$NOTES_PATH/$SUBDIR"
|
||||
"$EDITOR" "$NOTES_PATH/$SUBDIR/$1"
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
"$EDITOR" "$NOTES_PATH/_scratch.md"
|
||||
N _scratch
|
||||
|
|
3
scripts/bin/term
Executable file
3
scripts/bin/term
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
"$TERMINAL"
|
|
@ -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 tmon="tmux attach -t monitoring || tmux new -s monitoring"
|
||||
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
|
||||
# TODO: make these git aliases in the gitconfig?
|
||||
|
|
|
@ -77,6 +77,8 @@ if command -v nvim >/dev/null 2>&1; then
|
|||
export EDITOR="nvim"
|
||||
fi
|
||||
|
||||
export TERMINAL="urxvtc"
|
||||
|
||||
export BROWSER="firefox-developer-edition"
|
||||
|
||||
# unlimited history
|
||||
|
|
Reference in a new issue