From 7a545cfb4d17ed180f166274d59f1901b2528d2b Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Thu, 2 Jan 2020 08:16:47 -0500 Subject: [PATCH 01/19] Make polybar more portable (#441) replace hard-coded terminal reference with $TERMINAL environment var --- .config/polybar/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index ec7dd8b6..d89c0164 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -83,7 +83,7 @@ interval = 5 format-prefix = " " format-underline = ${colors.red} -click-left = st -e neomutt +click-left = $TERMINAL -e neomutt [module/weather] @@ -186,7 +186,7 @@ label-urgent-padding = ${module/bspwm.label-urgent-padding} type = internal/mpd format-online = -click-left = st -e ncmpcpp +click-left = $TERMINAL -e ncmpcpp click-right = mpc toggle label-song = %artist% - %title% From 87f0b208f31a0996f72be55d4a81772866345bf9 Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:32:51 +0100 Subject: [PATCH 02/19] changed mpd output to alsa --- .config/mpd/mpd.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf index 3fcb0dbd..a0548ecd 100644 --- a/.config/mpd/mpd.conf +++ b/.config/mpd/mpd.conf @@ -13,8 +13,8 @@ restore_paused "yes" max_output_buffer_size "16384" audio_output { - type "pulse" - name "pulse audio" + type "alsa" + name "alsa for audio soundcard" mixer_type "software" } From bf5b003d83f84635e1f1175d963775cb98016de9 Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:35:00 +0100 Subject: [PATCH 03/19] class needs to be set before the command otherwise it's not set at all --- .config/sxhkd/sxhkdrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index f9e6334f..e6a45d19 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -25,7 +25,7 @@ super + n super + c $TERMINAL -e calcurse -D ~/.config/calcurse super + v - $TERMINAL -e nvim -c VimwikiIndex + $TERMINAL -c VimwikiIndex -e nvim super + shift + a $TERMINAL -e alsamixer; pkill -RTMIN+10 $STATUSBAR super + shift + c From 6fda790b71b5e7ca88a27c462955eee20a6566db Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:36:31 +0100 Subject: [PATCH 04/19] use atool to extract archives instead of non-existing extract script --- .config/ranger/rc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index 801f7051..89b4b8c2 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -457,7 +457,7 @@ map cW bulkrename %s map mkd console mkdir%space map sc console shell ln -sT%space map D console delete -map X shell extract %f +map X shell atool -x %f map Z shell tar -cvzf %f.tar.gz %s map fzf_select map fzf_locate From cfeafce50124603663f2e2dd0c52ab8e84b89d82 Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:38:33 +0100 Subject: [PATCH 05/19] added diff highlighting settings to make highlighted text readable when highlighted --- .config/nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 16d88fb5..2bdca65c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -109,3 +109,8 @@ set clipboard+=unnamedplus autocmd BufWritePost *Xresources,*Xdefaults !xrdb % " Update binds when sxhkdrc is updated. autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd + +" 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 + highlight! link DiffText MatchParen +endif From c39f494876e9105430ccc1feae2b600052484654 Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:39:22 +0100 Subject: [PATCH 06/19] removed Vimwikiindex keybinding from i3 config as it is already bound in sxhkd --- .config/i3/config | 2 -- 1 file changed, 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index ea63f883..8313bdb7 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -102,8 +102,6 @@ bindsym $mod+Shift+z gaps outer current minus 5 bindsym $mod+c exec --no-startup-id cabl -bindsym $mod+v exec --no-startup-id $term -e $EDITOR -c "VimwikiIndex" - bindsym $mod+b bar mode toggle bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left From 0db554d7e57f43ae6ef525a5600161c248a4fbf2 Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:39:59 +0100 Subject: [PATCH 07/19] removed cabl keybinding from i3 config as the script is non-existant and mod+c is bound to calcurse in sxhkd --- .config/i3/config | 2 -- 1 file changed, 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 8313bdb7..640821ff 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -100,8 +100,6 @@ bindsym $mod+Ctrl+l move workspace to output right bindsym $mod+z gaps outer current plus 5 bindsym $mod+Shift+z gaps outer current minus 5 -bindsym $mod+c exec --no-startup-id cabl - bindsym $mod+b bar mode toggle bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left From a6421ced2bb5b1bf47ead0125bac6d5ac364c4e5 Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:40:56 +0100 Subject: [PATCH 08/19] moved samedir keybinding from i3/config to sxhkd --- .config/i3/config | 2 -- .config/sxhkd/sxhkdrc | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 640821ff..8fd19cf2 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -35,8 +35,6 @@ bar { } # #---Basic Bindings---# # -bindsym $mod+Shift+Return exec --no-startup-id samedir - bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index e6a45d19..3e38fee7 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -10,6 +10,8 @@ # Basic binds super + Return $TERMINAL +super + shift + Return + samedir super + shift + q kill -9 `xdotool getwindowfocus getwindowpid` super + d From ae0fadd67342f97fa25c60ba3ea9fc86c4da1458 Mon Sep 17 00:00:00 2001 From: Arjun Karangiya Date: Sat, 11 Jan 2020 14:33:34 +0530 Subject: [PATCH 09/19] Revert "class needs to be set before the command otherwise it's not set at all" This reverts commit bf5b003d This is a mistake. It's not class but command to Nvim. And It breaks the intended feature. --- .config/sxhkd/sxhkdrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 3e38fee7..bb652591 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -27,7 +27,7 @@ super + n super + c $TERMINAL -e calcurse -D ~/.config/calcurse super + v - $TERMINAL -c VimwikiIndex -e nvim + $TERMINAL -e nvim -c VimwikiIndex super + shift + a $TERMINAL -e alsamixer; pkill -RTMIN+10 $STATUSBAR super + shift + c From 0b4ca15f02bde14ee6228e58b4803681bcc31c2d Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 19 Jan 2020 19:26:28 -0500 Subject: [PATCH 10/19] rmakrdown fixes and .Rmd handler --- .local/bin/compiler | 2 +- .local/bin/opout | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/compiler b/.local/bin/compiler index 4b5432f1..a124d5f0 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -26,7 +26,7 @@ case "$file" in *\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;; *\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;; *\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;; - *\.rmd) echo "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" | R -q --vanilla ;; + *\.[rR]md) Rscript -e "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" ;; *\.tex) textype "$file" ;; *\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; *config.h) sudo make install ;; diff --git a/.local/bin/opout b/.local/bin/opout index d5d8dffb..258f7214 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -7,7 +7,7 @@ basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" case "$1" in - *.tex|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; + *.tex|*.md|*.[rR]md|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.[0-9]) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.html) setsid $BROWSER "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; From feba4ed3eba6cf943665fb80f06b4576da4c68c5 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Sun, 12 Jan 2020 01:06:12 -0500 Subject: [PATCH 11/19] fix(i3 config): Removed redundant keyboard shortcut that can be found in the sxhkdrc config --- .config/i3/config | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 8fd19cf2..7a31e744 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -39,7 +39,6 @@ bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle bindsym $mod+Escape workspace prev -bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit i3?" "i3-msg exit" #STOP/HIDE EVERYTHING: bindsym $mod+Shift+Delete exec --no-startup-id lmc truemute ; exec --no-startup-id lmc pause ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE From 02aeaeb2c75f4f0598e28f87b91d8827edc23cf9 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 19 Jan 2020 19:37:28 -0500 Subject: [PATCH 12/19] i3 independent-er --- .config/i3/config | 191 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 183 insertions(+), 8 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 8fd19cf2..18088f7d 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -13,6 +13,11 @@ gaps inner 15 gaps outer 15 set $term --no-startup-id $TERMINAL set $mod Mod4 +set $stoprec --no-startup-id dmenurecord kill +set $shutdown sudo -A shutdown -h now +set $reboot sudo -A reboot +set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager +set $hibernate sudo -A systemctl suspend # #---Dropdown Windows---# # # General dropdown window traits. The order can matter. @@ -26,6 +31,24 @@ for_window [instance="dropdown_tmuxdd"] border pixel 3 for_window [instance="dropdown_dropdowncalc"] border pixel 2 for_window [instance="dropdown_*"] move position center +# #---Starting External Scripts---# # +# mpd startup +exec --no-startup-id mpd +# Setting the background: +exec --no-startup-id setbg +# Starts dunst for notifications: +exec --no-startup-id dunst +# Composite manager: +exec --no-startup-id xcompmgr +# Runs the key remapping scripts +exec --no-startup-id remaps +# Unclutter makes the mouse invisible after a brief period +exec --no-startup-id unclutter +# Run the script to update the mpd i3block on change. +exec_always --no-startup-id mpdupdate +# Podboat automatic queue and download +exec_always --no-startup-id podentr + bar { font pango:mono 10 status_command i3blocks @@ -35,39 +58,66 @@ bar { } # #---Basic Bindings---# # +bindsym $mod+Return exec $term +bindsym $mod+Shift+Return exec --no-startup-id samedir + bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle bindsym $mod+Escape workspace prev bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit i3?" "i3-msg exit" +# bindsym $mod+BackSpace +bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot" + +bindsym $mod+grave exec --no-startup-id dmenuunicode +##bindsym $mod+asciitilde + #STOP/HIDE EVERYTHING: bindsym $mod+Shift+Delete exec --no-startup-id lmc truemute ; exec --no-startup-id lmc pause ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE +# Show selection: +bindsym $mod+Insert exec --no-startup-id showclip +##bindsym $mod+Pause + # #---Letter Key Bindings---# # bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid` +bindsym $mod+w exec $term -e nmtui +bindsym $mod+Shift+w exec --no-startup-id $BROWSER + +bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks +bindsym $mod+Shift+e exec --no-startup-id tutorialvids + +bindsym $mod+r exec $term -e $FILE bindsym $mod+Shift+r exec --no-startup-id winresize bindsym $mod+t split toggle bindsym $mod+Shift+t gaps inner current set 15; gaps outer current set 15 +bindsym $mod+y exec $term -e calcurse -D ~/.config/calcurse bindsym $mod+Shift+y exec --no-startup-id i3resize left bindsym $mod+u exec --no-startup-id ddspawn tmuxdd bindsym $mod+Shift+u exec --no-startup-id i3resize down +bindsym $mod+i exec $term -e htop bindsym $mod+Shift+i exec --no-startup-id i3resize up bindsym $mod+o sticky toggle bindsym $mod+Shift+o exec --no-startup-id i3resize right +bindsym $mod+p exec --no-startup-id lmc toggle +bindsym $mod+Shift+p exec --no-startup-id lmc pause + bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 +bindsym $mod+Shift+a exec $term -e pulsemixer bindsym $mod+s gaps inner current plus 5 bindsym $mod+Shift+s gaps inner current minus 5 +bindsym $mod+d exec --no-startup-id dmenu_run bindsym $mod+Shift+d gaps inner current set 0; gaps outer current set 0 set $freeze Distraction-free mode (super+shift+f to reactivate bindings) @@ -78,31 +128,41 @@ bindsym $mod+f fullscreen toggle bindsym $mod+Shift+f mode "$freeze" ;; exec --no-startup-id notify-send "Distraction-free mode activated." "Press Super+Shift+f to return." bindsym $mod+g workspace prev +bindsym $mod+Shift+g exec --no-startup-id gimp; workspace $ws5 bindsym $mod+h focus left bindsym $mod+Shift+h move left 30 -bindsym $mod+Ctrl+h move workspace to output left bindsym $mod+j focus down bindsym $mod+Shift+j move down 30 -bindsym $mod+Ctrl+j move workspace to output down bindsym $mod+k focus up bindsym $mod+Shift+k move up 30 -bindsym $mod+Ctrl+k move workspace to output up bindsym $mod+l focus right bindsym $mod+Shift+l move right 30 -bindsym $mod+Ctrl+l move workspace to output right bindsym $mod+z gaps outer current plus 5 bindsym $mod+Shift+z gaps outer current minus 5 +bindsym $mod+x exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id i3lock -e -f -c 1d2021 ; exec --no-startup-id xset dpms force off +bindsym $mod+Shift+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown" + +bindsym $mod+c exec --no-startup-id cabl +bindsym $mod+Shift+c exec --no-startup-id camtoggle + +bindsym $mod+v exec --no-startup-id $term -e $EDITOR -c "VimwikiIndex" +#bindsym $mod+Shift+v + bindsym $mod+b bar mode toggle bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left +bindsym $mod+n exec $term -e newsboat && pkill -RTMIN+6 i3blocks bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right +bindsym $mod+m exec --no-startup-id $term -e ncmpcpp +bindsym $mod+Shift+m exec --no-startup-id lmc mute + # #---Workspace Bindings---# # bindsym $mod+Home workspace $ws1 bindsym $mod+Shift+Home move container to workspace $ws1 @@ -173,18 +233,133 @@ for_window [title="mpvfloat"] border pixel 0 no_focus [title="mpvfloat"] # #---Function Buttons---# # +bindsym $mod+F1 exec --no-startup-id groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - bindsym $mod+F2 restart +bindsym $mod+F3 exec --no-startup-id displayselect +bindsym $mod+F4 exec --no-startup-id prompt "Hibernate computer?" "$hibernate" +bindsym $mod+F5 exec --no-startup-id $netrefresh +bindsym $mod+F6 exec --no-startup-id torwrap +bindsym $mod+F7 exec --no-startup-id td-toggle +bindsym $mod+F8 exec --no-startup-id mailsync +bindsym $mod+F9 exec --no-startup-id dmenumount +bindsym $mod+F10 exec --no-startup-id dmenuumount +bindsym $mod+F11 exec --no-startup-id ducksearch +bindsym $mod+F12 exec $term -e nmtui # #---Arrow Keys---# # bindsym $mod+Left focus left -bindsym $mod+Ctrl+Left move workspace to output left bindsym $mod+Down focus down -bindsym $mod+Ctrl+Down move workspace to output down bindsym $mod+Up focus up -bindsym $mod+Ctrl+Up move workspace to output up bindsym $mod+Right focus right -bindsym $mod+Ctrl+Right move workspace to output right bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right + +# #---Media Keys---# # +# Volume keys +bindsym $mod+plus exec --no-startup-id lmc up 5 +bindsym $mod+Shift+plus exec --no-startup-id lmc up 15 +bindsym $mod+minus exec --no-startup-id lmc down 5 +bindsym $mod+Shift+minus exec --no-startup-id lmc down 15 +bindsym $mod+less exec --no-startup-id lmc prev +bindsym $mod+Shift+less exec --no-startup-id lmc replay +bindsym $mod+greater exec --no-startup-id lmc next +bindsym $mod+Shift+greater exec --no-startup-id lmc next + +# For advancing forward/backward in an mpd song +bindsym $mod+bracketleft exec --no-startup-id lmc back 10 +bindsym $mod+Shift+bracketleft exec --no-startup-id lmc back 120 +bindsym $mod+bracketright exec --no-startup-id lmc forward 10 +bindsym $mod+Shift+bracketright exec --no-startup-id lmc forward 120 + +# For screenshots and recording +bindsym Print exec --no-startup-id maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" +bindsym Shift+Print exec --no-startup-id maimpick +bindsym $mod+Print exec --no-startup-id dmenurecord +bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey" +bindsym $mod+Delete exec $stoprec +bindsym XF86Launch1 exec --no-startup-id xset dpms force off + +# #---Extra XF86 Keys---# # +bindsym XF86AudioMute exec --no-startup-id lmc mute +bindsym XF86AudioLowerVolume exec --no-startup-id lmc down 5 +bindsym Shift+XF86AudioLowerVolume exec --no-startup-id lmc down 10 +bindsym Control+XF86AudioLowerVolume exec --no-startup-id lmc down 1 +bindsym XF86AudioRaiseVolume exec --no-startup-id lmc up 5 +bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id lmc up 10 +bindsym Control+XF86AudioRaiseVolume exec --no-startup-id lmc up 1 +bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown" +##bindsym XF86Copy exec +##bindsym XF86Open exec +##bindsym XF86Paste exec +##bindsym XF86Cut exec +##bindsym XF86MenuKB exec +bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 +##bindsym XF86Sleep This binding is typically mapped by systemd automatically. +##bindsym XF86WakeUp exec +bindsym XF86Explorer exec $term -e $FILE +##bindsym XF86Send exec +##bindsym XF86Xfer exec +bindsym XF86WWW exec --no-startup-id $BROWSER +##bindsym XF86DOS exec +bindsym XF86ScreenSaver exec exec --no-startup-id lockscreen +##bindsym XF86RotateWindows exec +##bindsym XF86TaskPane exec +##bindsym XF86Favorites exec +bindsym XF86MyComputer exec $term -e $FILE +##bindsym XF86Back exec +##bindsym XF86Forward exec +bindsym XF86Eject exec --no-startup-id dmenuumount +bindsym XF86AudioNext exec --no-startup-id lmc next +bindsym XF86AudioPlay exec --no-startup-id lmc toggle +bindsym XF86AudioPrev exec --no-startup-id lmc prev +bindsym XF86AudioStop exec --no-startup-id lmc toggle +##bindsym XF86AudioRecord +bindsym XF86AudioRewind exec --no-startup-id lmc back 10 +bindsym XF86AudioForward exec --no-startup-id lmc forward 10 +##bindsym XF86Phone exec +##bindsym XF86Tools exec +bindsym XF86HomePage exec $BROWSER https://lukesmith.xyz +bindsym XF86Reload restart +##bindsym XF86ScrollUp exec +##bindsym XF86ScrollDown exec +##bindsym XF86New exec +##bindsym XF86LaunchA exec +##bindsym XF86LaunchB exec +##bindsym XF86Launch2 exec +##bindsym XF86Launch3 exec +##bindsym XF86Launch4 exec +##bindsym XF86Launch5 exec +##bindsym XF86Launch6 exec +##bindsym XF86Launch7 exec +##bindsym XF86Launch8 exec +##bindsym XF86Launch9 exec +#bindsym XF86AudioMicMute exec $micmute +bindsym XF86TouchpadToggle exec --no-startup-id toggletouchpad +bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0 +bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1 +bindsym XF86Suspend exec --no-startup-id lockscreen +bindsym XF86Close kill +bindsym XF86WebCam exec --no-startup-id camtoggle +bindsym XF86Mail exec $term -e neomutt && pkill -RTMIN+12 i3blocks +bindsym XF86Messenger exec $term -e weechat +bindsym XF86Search exec $BROWSER https://duckduckgo.com +##bindsym XF86Go exec +##bindsym XF86Finance exec +##bindsym XF86Game exec +bindsym XF86Shop exec $BROWSER https://ebay.com +bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15 +bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15 +bindsym XF86AudioMedia exec --no-startup-id $term -e ncmpcpp +bindsym XF86Display exec --no-startup-id displayselect +#bindsym XF86KbdLightOnOff exec +#bindsym XF86KbdBrightnessDown exec +#bindsym XF86KbdBrightnessUp exec +##bindsym XF86Reply exec +##bindsym XF86MailForward exec +##bindsym XF86Save exec +bindsym XF86Documents exec $term -e $FILE ~/Documents +##bindsym XF86Battery exec +##bindsym XF86Bluetooth exec +bindsym XF86WLAN exec $netrefresh From 2149d1ebb7c5aad18dfd272afd21bf9502675255 Mon Sep 17 00:00:00 2001 From: Daja177 <59206235+Daja177@users.noreply.github.com> Date: Mon, 20 Jan 2020 13:35:00 +0100 Subject: [PATCH 13/19] move alsa config and add env variable --- .asoundrc => .config/alsa/asoundrc | 0 .profile | 1 + 2 files changed, 1 insertion(+) rename .asoundrc => .config/alsa/asoundrc (100%) diff --git a/.asoundrc b/.config/alsa/asoundrc similarity index 100% rename from .asoundrc rename to .config/alsa/asoundrc diff --git a/.profile b/.profile index e3543d9f..09f83665 100644 --- a/.profile +++ b/.profile @@ -22,6 +22,7 @@ export LESSHISTFILE="-" export INPUTRC="$HOME/.config/inputrc" export ZDOTDIR="$HOME/.config/zsh" export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" +export ALSA_CONFIG_PATH="$HOME/.config/alsa/asoundrc" # Other program settings: export DICS="/usr/share/stardict/dic/" From 1d925ae7f5d4de2675f85ea62214f7bf88b45df1 Mon Sep 17 00:00:00 2001 From: Daja177 <59206235+Daja177@users.noreply.github.com> Date: Mon, 20 Jan 2020 13:36:56 +0100 Subject: [PATCH 14/19] make gnupg xdg compliant --- .profile | 1 + 1 file changed, 1 insertion(+) diff --git a/.profile b/.profile index 09f83665..ae6cc02b 100644 --- a/.profile +++ b/.profile @@ -21,6 +21,7 @@ export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" export LESSHISTFILE="-" export INPUTRC="$HOME/.config/inputrc" export ZDOTDIR="$HOME/.config/zsh" +export GNUPGHOME="$HOME/.local/share/gnupg" export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" export ALSA_CONFIG_PATH="$HOME/.config/alsa/asoundrc" From 4f811f7849aaa73805d1f34f12a23d9397ba9f80 Mon Sep 17 00:00:00 2001 From: Daja177 <59206235+Daja177@users.noreply.github.com> Date: Mon, 20 Jan 2020 13:41:50 +0100 Subject: [PATCH 15/19] move xauthority file to the xdg runtime directory --- .profile | 1 + 1 file changed, 1 insertion(+) diff --git a/.profile b/.profile index ae6cc02b..ffb1c86b 100644 --- a/.profile +++ b/.profile @@ -16,6 +16,7 @@ export FILE="ranger" export STATUSBAR="${LARBSWM}blocks" # ~/ Clean-up: +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" export NOTMUCH_CONFIG="$HOME/.config/notmuch-config" export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" export LESSHISTFILE="-" From 1537583b5ea44d8b215b41861b1e98cdbb5a7893 Mon Sep 17 00:00:00 2001 From: Daja177 <59206235+Daja177@users.noreply.github.com> Date: Mon, 20 Jan 2020 13:44:48 +0100 Subject: [PATCH 16/19] move wget hsts file to cache --- .config/wget/wgetrc | 1 + .profile | 1 + 2 files changed, 2 insertions(+) create mode 100644 .config/wget/wgetrc diff --git a/.config/wget/wgetrc b/.config/wget/wgetrc new file mode 100644 index 00000000..4fd7999f --- /dev/null +++ b/.config/wget/wgetrc @@ -0,0 +1 @@ +hsts-file=~/.cache/wget-hsts diff --git a/.profile b/.profile index ffb1c86b..5361d47a 100644 --- a/.profile +++ b/.profile @@ -20,6 +20,7 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" export NOTMUCH_CONFIG="$HOME/.config/notmuch-config" export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" export LESSHISTFILE="-" +export WGETRC="$HOME/.config/wget/wgetrc" export INPUTRC="$HOME/.config/inputrc" export ZDOTDIR="$HOME/.config/zsh" export GNUPGHOME="$HOME/.local/share/gnupg" From 7a5b3cc2326983e30bdea8147a561a61f34243eb Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 20 Jan 2020 14:24:41 -0500 Subject: [PATCH 17/19] i3 details --- .config/i3/config | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 18088f7d..6522d5e9 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -31,24 +31,6 @@ for_window [instance="dropdown_tmuxdd"] border pixel 3 for_window [instance="dropdown_dropdowncalc"] border pixel 2 for_window [instance="dropdown_*"] move position center -# #---Starting External Scripts---# # -# mpd startup -exec --no-startup-id mpd -# Setting the background: -exec --no-startup-id setbg -# Starts dunst for notifications: -exec --no-startup-id dunst -# Composite manager: -exec --no-startup-id xcompmgr -# Runs the key remapping scripts -exec --no-startup-id remaps -# Unclutter makes the mouse invisible after a brief period -exec --no-startup-id unclutter -# Run the script to update the mpd i3block on change. -exec_always --no-startup-id mpdupdate -# Podboat automatic queue and download -exec_always --no-startup-id podentr - bar { font pango:mono 10 status_command i3blocks @@ -132,15 +114,19 @@ bindsym $mod+Shift+g exec --no-startup-id gimp; workspace $ws5 bindsym $mod+h focus left bindsym $mod+Shift+h move left 30 +bindsym $mod+Ctrl+h move workspace to output left bindsym $mod+j focus down bindsym $mod+Shift+j move down 30 +bindsym $mod+Ctrl+j move workspace to output down bindsym $mod+k focus up bindsym $mod+Shift+k move up 30 +bindsym $mod+Ctrl+k move workspace to output up bindsym $mod+l focus right bindsym $mod+Shift+l move right 30 +bindsym $mod+Ctrl+l move workspace to output right bindsym $mod+z gaps outer current plus 5 bindsym $mod+Shift+z gaps outer current minus 5 @@ -248,13 +234,17 @@ bindsym $mod+F12 exec $term -e nmtui # #---Arrow Keys---# # bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right bindsym $mod+Shift+Left move left +bindsym $mod+Ctrl+Left move workspace to output left +bindsym $mod+Down focus down bindsym $mod+Shift+Down move down +bindsym $mod+Ctrl+Down move workspace to output down +bindsym $mod+Up focus up bindsym $mod+Shift+Up move up +bindsym $mod+Ctrl+Up move workspace to output up +bindsym $mod+Right focus right bindsym $mod+Shift+Right move right +bindsym $mod+Ctrl+Right move workspace to output right # #---Media Keys---# # # Volume keys From e97d28bdd81fada98ab2aba173156cac9780f693 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 20 Jan 2020 17:22:24 -0500 Subject: [PATCH 18/19] Revert "make gnupg xdg compliant" This reverts commit 1d925ae7f5d4de2675f85ea62214f7bf88b45df1. --- .profile | 1 - 1 file changed, 1 deletion(-) diff --git a/.profile b/.profile index 5361d47a..5a078e4e 100644 --- a/.profile +++ b/.profile @@ -23,7 +23,6 @@ export LESSHISTFILE="-" export WGETRC="$HOME/.config/wget/wgetrc" export INPUTRC="$HOME/.config/inputrc" export ZDOTDIR="$HOME/.config/zsh" -export GNUPGHOME="$HOME/.local/share/gnupg" export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" export ALSA_CONFIG_PATH="$HOME/.config/alsa/asoundrc" From 6c8147ea6040a8f63aea4d1da8b3e8e711b6d24f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 20 Jan 2020 18:10:18 -0500 Subject: [PATCH 19/19] Revert "move alsa config and add env variable" This reverts commit 2149d1ebb7c5aad18dfd272afd21bf9502675255. --- .config/alsa/asoundrc => .asoundrc | 0 .profile | 1 - 2 files changed, 1 deletion(-) rename .config/alsa/asoundrc => .asoundrc (100%) diff --git a/.config/alsa/asoundrc b/.asoundrc similarity index 100% rename from .config/alsa/asoundrc rename to .asoundrc diff --git a/.profile b/.profile index 5a078e4e..c4bfd339 100644 --- a/.profile +++ b/.profile @@ -24,7 +24,6 @@ export WGETRC="$HOME/.config/wget/wgetrc" export INPUTRC="$HOME/.config/inputrc" export ZDOTDIR="$HOME/.config/zsh" export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" -export ALSA_CONFIG_PATH="$HOME/.config/alsa/asoundrc" # Other program settings: export DICS="/usr/share/stardict/dic/"