1
0

display manager updates

This commit is contained in:
dtb 2021-07-18 01:25:52 -04:00
parent 13b3850735
commit 1cc0c3418e
7 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1 @@
exec bspwm

View File

@ -0,0 +1,2 @@
cat "$DISPLAYM_CONFIG/sxhkdrc" "$DISPLAYM_CONFIG/bspwm/sxhkdrc" >"$HOME/.config/sxhkd/sxhkdrc"
startx

View File

@ -0,0 +1 @@
exec ctwm

View File

@ -0,0 +1,2 @@
cat "$DISPLAYM_CONFIG/sxhkdrc" >"$HOME/.config/sxhkd/sxhkdrc"
startx

View File

@ -0,0 +1 @@
exec i3

View File

@ -0,0 +1,52 @@
XF86AudioMicMute
pactl set-source-mute @DEFAULT_SOURCE@ toggle
XF86AudioMute
pactl -- set-sink-mute @DEFAULT_SINK@ toggle
XF86Audio{Lower,Raise}Volume
pactl set-sink-volume @DEFAULT_SINK@ {"-5%","+5%"}
XF86Audio{Play,Pause,Next,Prev}
playerctl {play,pause,next,previous}
XF86Launch1
$TERMINAL
control + shift + Escape
$TERMINAL -e htop
Print
scrot
# cred 4 https://github.com/patrickbolle/dotfiles/
mod1 + equal
light -A 5
mod1 + shift + equal
light -A 1
mod1 + minus
light -U 5
mod1 + shift + minus
light -U 1
mod1 + shift + r
pkill -USR1 sxhkd
mod1 + i
ps aux | grep dmenubar | grep -v grep && pkill dmenubar; \
data | /home/trinity/src/dmenubar/dmenubar -b
mod1 + shift + i
pkill dmenubar
mod1 + d
dmenu_run
mod1 + Return
$TERMINAL
mod1 + v
$TERMINAL -e pulsemixer
mod1 + b
$BROWSER
mod1 + m
pactl -- set-sink-mute @DEFAULT_SINK@ toggle
mod1 + shift + m
pactl set-source-mute @DEFAULT_SOURCE@ toggle

30
dotfiles-old/bin/displaym Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
set -ex
usage() {
printf "\
Usage:
%s start [window manager]
" >>/dev/stderr
exit 1
}
[ -n "$1" ] || usage
[ -z "$HOME" ] \
&& printf "No \$HOME environment variable found. This is very bad and an issue that is not caused by this script.\n" 1>&2 \
&& exit 1 \
|| true
DISPLAYM_CONFIG="$HOME/.config/displaym"; export DISPLAYM_CONFIG
[ -d "$DISPLAYM_CONFIG" ] || mkdir -p "$DISPLAYM_CONFIG"
case "$1" in
(start)
WM="$2"; export WM
cat "$DISPLAYM_CONFIG/.xinitrc" "$DISPLAYM_CONFIG/$WM/.xinitrc" >"$HOME/.xinitrc"
. "$HOME/.config/displaym/$WM/start.sh"
;;
(*) usage ;;
esac