Mic script, amd stuff, more fish fixes

This commit is contained in:
Daniel Flanagan 2020-01-23 12:38:19 -06:00
parent dadb7da642
commit dbd88dde4b
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
7 changed files with 26 additions and 28 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
pidfile="/var/run/user/$(id -u)/polybar-mic-script.pid" pidfile="/var/run/user/$(id -u)/polybar-mic-script.sh.pid"
if [ -e "$pidfile" ]; then if [ -e "$pidfile" ]; then
kill "$(cat "${pidfile}")" > /dev/null 2>&1 kill "$(cat "${pidfile}")" > /dev/null 2>&1

View file

@ -230,6 +230,9 @@ XF86AudioPrev
super + w super + w
"app-launcher" -modi window,run -show window "app-launcher" -modi window,run -show window
super + shift + v
sh -c 'kill -USR1 $(cat "/var/run/user/$UID/polybar-mic-script.pid")'
# close the current application # close the current application
super + c super + c
bspc node -c bspc node -c
@ -241,22 +244,11 @@ super + shift + c
# kill the wm, if alt is held, it will reload instead of truly quitting... # kill the wm, if alt is held, it will reload instead of truly quitting...
# I think? # I think?
super + ctrl + {alt +,_} Escape super + ctrl + {alt +,_} Escape
{bspc wm -d > "$BSPWM_STATE_FILE" && bspc quit, \ sh -c '{bspc wm -d > "$BSPWM_STATE_FILE" && bspc quit, bspc quit 1}'
bspc quit 1}
Print
scrot "$NICE_HOME/img/scrots/%Y-%m-%d_%H-%M-%S_\$wx\$h.png"
# make sxhkd reload its configuration files: # make sxhkd reload its configuration files:
super + Escape super + Escape
pkill -USR1 -x sxhkd pkill -USR1 -x sxhkd
super + d
xdotool key super+4 && sleep 0.1 && xdotool key shift+4 && xdotool key shift+4 && xdotool key shift+4 && sleep 0.2 && xdotool key super+1 && xdotool key super+3
super + ctrl + c super + ctrl + c
bspc rule -a '*' -o state=floating && urxvt --geometry 64x9 -e sh -c "cal -n 3 && bash" bspc rule -a '*' -o state=floating && urxvt --geometry 64x9 -e sh -c "cal -n 3 && bash"
super + v
tmux new-window 'sh -ci tmuxswitcher'

View file

@ -1,7 +1,7 @@
# Beware! This file is rewritten by htop when settings are changed in the interface. # Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly. # The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1 fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=2 sort_key=46
sort_direction=1 sort_direction=1
hide_threads=0 hide_threads=0
hide_kernel_threads=1 hide_kernel_threads=1

View file

@ -30,16 +30,14 @@ end
# more sane ls colors # more sane ls colors
set -Ux LS_COLORS 'ow=01;36;40' set -Ux LS_COLORS 'ow=01;36;40'
# load a per-device config last so anything can be overridden
for cf in config.fish .hidden/config.fish
set f $ENV_PATH/$cf
test -f $f && source $f
end
mkdir -p $NOTES_PATH $USER_LOGS_PATH $SCROTS_PATH
has_command fd && set -Ux FZF_DEFAULT_COMMAND 'fd --type f --hidden --follow --exclude .git' has_command fd && set -Ux FZF_DEFAULT_COMMAND 'fd --type f --hidden --follow --exclude .git'
test -f ~/.fzf/shell/key-bindings.fish && source ~/.fzf/shell/key-bindings.fish
function fish_greeting
fortune
end
# we assume the user uses "$HOME" to just store their mess of dotfiles and other # we assume the user uses "$HOME" to just store their mess of dotfiles and other
# nonsense that clutters it up and that they have a preferred starting # nonsense that clutters it up and that they have a preferred starting
# directory where they keep the stuff they actually care about # directory where they keep the stuff they actually care about
@ -48,10 +46,16 @@ if test $PWD = $HOME; or test $PWD = $NICE_HOME;
cd $NICE_HOME || cd cd $NICE_HOME || cd
end end
test -f ~/.fzf/shell/key-bindings.fish && source ~/.fzf/shell/key-bindings.fish
if test -f $HOME/.asdf/asdf.fish if test -f $HOME/.asdf/asdf.fish
source $HOME/.asdf/asdf.fish source $HOME/.asdf/asdf.fish
else if test -f /opt/asdf-vm/asdf.fish else if test -f /opt/asdf-vm/asdf.fish
source /opt/asdf-vm/asdf.fish source /opt/asdf-vm/asdf.fish
end end
# load a per-device config last so anything can be overridden
for cf in config.fish .hidden/config.fish
set f $ENV_PATH/$cf
test -f $f && source $f
end
mkdir -p $NOTES_PATH $USER_LOGS_PATH $SCROTS_PATH

View file

@ -40,6 +40,6 @@ set -Ux XDG_PICTURES_DIR $NICE_HOME/img
set -Ux XDG_VIDEOS_DIR $NICE_HOME/video set -Ux XDG_VIDEOS_DIR $NICE_HOME/video
set -Ux XDG_GAMES_DIR $NICE_HOME/games set -Ux XDG_GAMES_DIR $NICE_HOME/games
set -Ux NOTES_PATH $NOTES_PATH $XDG_DOCUMENTS_DIR/notes set -Ux NOTES_PATH $XDG_DOCUMENTS_DIR/notes
set -Ux USER_LOGS_PATH $USER_LOGS_PATH $XDG_DOCUMENTS_DIR/logs set -Ux USER_LOGS_PATH $XDG_DOCUMENTS_DIR/logs
set -Ux SCROTS_PATH $SCROTS_PATH $XDG_PICTURES_DIR/scrots set -Ux SCROTS_PATH $XDG_PICTURES_DIR/scrots

View file

@ -53,6 +53,7 @@ pacaur --needed -S \
fish `# Shell` \ fish `# Shell` \
pkgfile `# Package File Metadata` \ pkgfile `# Package File Metadata` \
swaks `# SMTP CLI` \ swaks `# SMTP CLI` \
fortune-mod fortune-mod-archlinux `# Fortune` \
--noconfirm --noedit --noconfirm --noedit
# install rxvt-unicode script for resizing font on-the-fly # install rxvt-unicode script for resizing font on-the-fly

View file

@ -1,3 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
pacaur --needed -S --noconfirm --noedit pacaur --needed -S --noconfirm --noedit \
libva-mesa-driver mesa-vdpau libva-vdpau-driver libvdpau-va-gl `# Hardware Accelerated Video` \