Add sysyadm alias
This commit is contained in:
parent
56934091ef
commit
4ca38a8806
2 changed files with 21 additions and 0 deletions
20
.bin/system-mode
Executable file
20
.bin/system-mode
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shopt -s expand_aliases
|
||||
. "$XDG_CONFIG_HOME/aliasrc"
|
||||
|
||||
system_mode_wayland () {
|
||||
sysyadm config --unset-all local.class x11
|
||||
sysyadm alt
|
||||
}
|
||||
|
||||
system_mode_x11 () {
|
||||
sysyadm config --add local.class x11
|
||||
sysyadm alt
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"wayland") system_mode_wayland ;;
|
||||
"x11") system_mode_x11 ;;
|
||||
*) echo "'$1' is not a valid mode" ;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue