From 11a6eda0ce76c3879fe15546c66b258eda062654 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 28 May 2020 10:30:58 +0200 Subject: [PATCH] [sxhkd] Fix shortcuts, Add bib-due overview Changed sxhkd being hard-coded to use alacritty as a terminal. Though I don't see myself switching soon, changed the shortcut to make use of the already existing environment variable "$TERMINAL" which gets set as part of my basic env settings on the machine. Added pre-defined filter for styler entries, removing 256 color versions of base16 themes, as well as all atelier styles. I never use -256 versions of the themes so they can be hidden. If I want to use an atelier style (which is rarely), I can quickly remove the pre-defined filter since it is the last one added. Added a mapping to academia mode which shows *all* due papers, to get an overview at a glance. Uses F3, so that academia mappings go F1->F3 from most restricted to most encompassing views. --- sh/.config/sh/env | 5 ++--- sxhkd/.config/sxhkd/sxhkdrc | 8 +++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sh/.config/sh/env b/sh/.config/sh/env index af817db..a555ab4 100644 --- a/sh/.config/sh/env +++ b/sh/.config/sh/env @@ -26,9 +26,8 @@ export LIBRARYROOT="${LIBRARYROOT:-$HOME/documents/library}" export BIBFILE="${BIBFILE:-$LIBRARYROOT/academia/academia.bib}" # these are my personal 'important' application settings -export EDITOR=nvim -export BROWSER=qutebrowser - +export EDITOR="nvim" +export BROWSER="qutebrowser" export TERMINAL="alacritty" export PAGER="less" diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 06eb67f..88f4770 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -12,7 +12,7 @@ super + BackSpace # quick-switching of theme using styler super + F8 - styler set $(styler list themes | rofi -dmenu -theme /themes/dropdown -matching fuzzy) + styler set $(styler list themes | rofi -dmenu -theme /themes/dropdown -matching fuzzy -filter "-256 -atelier ") # enable function (/media) key functionality XF86MonBrightness{Up,Down} @@ -22,9 +22,9 @@ XF86AudioMute XF86Audio{RaiseVolume,LowerVolume} pulsemixer --change-volume {-5,+5} -# Open terminal emulator (TODO find way to not hard-code alacritty, perhaps ENV vars) +# Open terminal emulator (the variable gets set in sh module basic env vars) super + Return - alacritty + $TERMINAL # open quick start menu super + space @@ -68,3 +68,5 @@ alt + a : {F1,F2} # due papers overall alt + a : shift + {F1,F2} rofi-bib-due -p{1,3} +alt + a : F3 + rofi-bib-due