summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Xorg/xbindkeysrc94
-rw-r--r--Xorg/xinitrc20
2 files changed, 86 insertions, 28 deletions
diff --git a/Xorg/xbindkeysrc b/Xorg/xbindkeysrc
index 6a4c8d8..9437ef0 100644
--- a/Xorg/xbindkeysrc
+++ b/Xorg/xbindkeysrc
@@ -69,35 +69,86 @@
# My shortcuts
# ============
-# Change brightness or volume with (Super + up|down). This might be better to
-# configure from the DE/WM. It's more complex and the command varies depending
-# on the machine.
-# See: https://askubuntu.com/a/149264/951105
-
-## Increase volume
-#"pactl set-sink-volume @DEFAULT_SINK@ +1000"
+# Modifier scheme (order: Control,Shift,Alt(Mod1),Super(Mod4)):
+# * app-specific:
+# * Control, Control+Shift
+# * Linux & WM (dwm):
+# * Alt, Control+Alt, Shift+Alt
+# * user-defined:
+# * Mod4 (application launch & audio control)
+# * Shift+Mod4 (brightness control & audio control)
+# * Control+Mod4 (unused)
+# * Alt+Mod4 (unused)
+# * unused (4 finger shortcuts):
+# * Control+Shift+Alt, Control+Shift+Mod4, Control+Alt+Mod4, Shift+Alt+Mod4
+# * unused (5 finger shortcut):
+# * Control+Shift+Alt+Mod4
+
+# System
+# ------
+
+"sudo shutdown 0"
+ Control+Shift+Alt+Mod4 + s
+"sudo reboot"
+ Control+Shift+Alt+Mod4 + r
+
+"slock"
+ Control+Alt + l
+
+# Audio & brightness control
+# Ref.:
+# https://wiki.archlinux.org/title/Backlight
+
+"pactl set-sink-volume '@DEFAULT_SINK@' '+10%'"
+ Mod4 + k
# XF86AudioRaiseVolume
-## Decrease volume
-#"pactl set-sink-volume @DEFAULT_SINK@ -1000"
-# XF86AudioLowerVolume
+"pactl set-sink-volume '@DEFAULT_SINK@' '-10%'"
+ Mod4 + j
+# XF86AudioLowerVolume
+
+"pactl set-sink-mute '@DEFAULT_SINK@' 'toggle'"
+ Shift+Mod4 + m
+# XF86AudioMute
+
+"pactl set-source-mute @DEFAULT_SOURCE@ toggle"
+ Mod4 + m
+
+# Maybe it'd be a good idea to remove the sudo from here, idk
+"sudo xbacklight -inc 10"
+ Shift+Mod4 + k
+# XF86MonBrightnessUp
-# Terminal
+"sudo xbacklight -dec 10"
+ Shift+Mod4 + j
+# XF86MonBrightnessDown
+
+# dwm
+# --------------------
+
+"dmenu-webshortcuts.sh"
+ Alt + w
+
+"dmenu-emojicopy.sh"
+ Alt + e
+
+# Launch applications (super + key)
+# ---------------------------------
-# st with tmux (super + return)
"st -e tmux"
Mod4 + Return
"st"
Shift+Mod4 + Return
-# Other applications (super + key)
+"pcmanfm"
+ Mod4 + e
"firefox"
Mod4 + w
"thunderbird"
- Mod4 + m
+ Mod4 + t
"goldendict"
Mod4 + g
@@ -105,15 +156,20 @@
"zeal"
Mod4 + h
-# mpd control with mpc (just use strawberry(1))
+# Media control
+# -------------
-#"mpc toggle"
+"playerctl play-pause"
+ Mod4 + Down
# XF86AudioPlay
-#"mpc stop"
+"playerctl stop"
+ Mod4 + Up
# XF86AudioStop
-#"mpc prev"
+"playerctl next"
+ Mod4 + Right
# XF86AudioPrev
-#"mpc next"
+"playerctl previous"
+ Mod4 + Left
# XF86AudioNext
##################################
diff --git a/Xorg/xinitrc b/Xorg/xinitrc
index fe95f3c..6268abc 100644
--- a/Xorg/xinitrc
+++ b/Xorg/xinitrc
@@ -41,17 +41,15 @@ fi
# Setup and start Desktop Environment
# ======================================================================
-# fcitx (CLJ and emoji input method)
+# fcitx (CJK and emoji input method)
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
-# xbindkeys (keyboard shortcuts)
-xbindkeys
-
-# map CAPSLOCK to ESC
-setxkbmap -option caps:escape
-
+xrandr --dpi 144 # Original mac: 72, stupid windows: 96 pulse15: 188
+laptop-xinput_setup.sh
+xbindkeys # keyboard shortcuts
+setxkbmap -option caps:escape # map CAPSLOCK to ESC
# Start twm
#twm &
@@ -62,8 +60,12 @@ setxkbmap -option caps:escape
# Start Plasma
# Start KDE Plasma (DE)
-export DESKTOP_SESSION=plasma
-exec startplasma-x11
+#export DESKTOP_SESSION=plasma
+#exec startplasma-x11
# Start xfce4
#startxfce4
+
+# Start dwm
+xautolock -time 10 -locker slock &
+exec dwm