display manager updates
This commit is contained in:
parent
13b3850735
commit
1cc0c3418e
1
dotfiles-old/.config/displaym/bspwm/.xinitrc
Normal file
1
dotfiles-old/.config/displaym/bspwm/.xinitrc
Normal file
@ -0,0 +1 @@
|
||||
exec bspwm
|
2
dotfiles-old/.config/displaym/bspwm/start.sh
Normal file
2
dotfiles-old/.config/displaym/bspwm/start.sh
Normal file
@ -0,0 +1,2 @@
|
||||
cat "$DISPLAYM_CONFIG/sxhkdrc" "$DISPLAYM_CONFIG/bspwm/sxhkdrc" >"$HOME/.config/sxhkd/sxhkdrc"
|
||||
startx
|
1
dotfiles-old/.config/displaym/ctwm/.xinitrc
Normal file
1
dotfiles-old/.config/displaym/ctwm/.xinitrc
Normal file
@ -0,0 +1 @@
|
||||
exec ctwm
|
2
dotfiles-old/.config/displaym/ctwm/start.sh
Executable file
2
dotfiles-old/.config/displaym/ctwm/start.sh
Executable file
@ -0,0 +1,2 @@
|
||||
cat "$DISPLAYM_CONFIG/sxhkdrc" >"$HOME/.config/sxhkd/sxhkdrc"
|
||||
startx
|
1
dotfiles-old/.config/displaym/i3wm/.xinitrc
Normal file
1
dotfiles-old/.config/displaym/i3wm/.xinitrc
Normal file
@ -0,0 +1 @@
|
||||
exec i3
|
52
dotfiles-old/.config/displaym/sxhkdrc
Executable file
52
dotfiles-old/.config/displaym/sxhkdrc
Executable 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
30
dotfiles-old/bin/displaym
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user