summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/alacritty/alacritty.yml2
-rw-r--r--.config/sxhkd/sxhkdrc.dwm69
-rwxr-xr-x.xinitrc2
-rw-r--r--.xprofile4
4 files changed, 74 insertions, 3 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index 15f1f84..18fe8f0 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -1,5 +1,5 @@
font:
- size: 13
+ size: 10
window:
padding:
diff --git a/.config/sxhkd/sxhkdrc.dwm b/.config/sxhkd/sxhkdrc.dwm
new file mode 100644
index 0000000..46e75ad
--- /dev/null
+++ b/.config/sxhkd/sxhkdrc.dwm
@@ -0,0 +1,69 @@
+#
+# wm independent hotkeys
+#
+
+# terminal emulator
+super + Return
+ sh -c "$TERMINAL"
+
+# program launcher
+super + p
+ rofi -theme gruvbox-dark -show drun
+
+# password manager
+super + shift + p
+ passmenu -i -l 5
+
+# make sxhkd reload its configuration files:
+super + Escape
+ pkill -USR1 -x sxhkd
+
+# applications
+super + w
+ $BROWSER
+
+super + b
+ pcmanfm
+
+super + shift + b
+ bluecontrol
+
+super + Tab
+ sh -c "$TERMINAL -e htop"
+
+super + shift + t
+ sh -c "$TERMINAL -e transopen"
+
+super + m
+ sh -c "$TERMINAL -e music localhost"
+
+super + shift + m
+ sh -c "$TERMINAL -e music"
+
+# volume control
+XF86AudioMute
+ pamixer -t; pkill -RTMIN+9 dwmblocks
+
+XF86AudioLowerVolume
+ pamixer --allow-boost -d 5; pkill -RTMIN+9 dwmblocks
+
+XF86AudioRaiseVolume
+ pamixer --allow-boost -i 5; pkill -RTMIN+9 dwmblocks
+
+# touchpad notifications
+XF86TouchpadOff
+ notify-send 'Touchpad turned off'
+
+XF86TouchpadOn
+ notify-send 'Touchpad turned on'
+
+# screenshots
+{_,shift + } Print
+ screenshot area to {clip,file}
+
+ctrl + {_, shift + } Print
+ screenshot window to {clip,file}
+
+super + {_, shift + } Print
+ screenshot screen to {clip,file}
+
diff --git a/.xinitrc b/.xinitrc
index cc07d5e..77b5d95 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -4,7 +4,7 @@
# Otherwise, display manager should set up this variable and
# source the xprofile.
-export DESKTOP_SESSION="xmonad"
+export DESKTOP_SESSION="dwm"
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
diff --git a/.xprofile b/.xprofile
index 715f244..3f2790f 100644
--- a/.xprofile
+++ b/.xprofile
@@ -12,7 +12,9 @@ dunst &
if [ "$DESKTOP_SESSION" = "dwm" ]; then
compositor_args="-o 0"
dwmblocks &
-elif [ "$DESKTOP_SESSION" = "xmonad" ]; then
+ pgrep -x sxhkd > /dev/null || sxhkd -c $XDG_CONFIG_HOME/sxhkd/sxhkdrc.dwm &
+elif [ "$DESKTOP_SESSION" = "xmonad" ] || \
+ [ "$DESKTOP_SESSION" = "bspwm" ]; then
compositor_args="-o 0"
fi