update project script
This commit is contained in:
parent
a061d7e03a
commit
f58c203ce3
3 changed files with 9 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
### Project
|
||||
|
||||
bindsym $mod+Alt+Left exec ~/.config/sway/scripts.d/project.sh LEFT
|
||||
bindsym $mod+Alt+Right exec ~/.config/sway/scripts.d/project.sh RIGHT
|
||||
bindsym $mod+Alt+Up exec ~/.config/sway/scripts.d/project.sh EXTERNAL_ONLY
|
||||
bindsym $mod+Alt+Down exec ~/.config/sway/scripts.d/project.sh PRIMARY_ONLY
|
||||
bindsym $mod+Alt+Left exec ~/.config/sway/scripts.d/project.sh LEFT $scale
|
||||
bindsym $mod+Alt+Right exec ~/.config/sway/scripts.d/project.sh RIGHT $scale
|
||||
bindsym $mod+Alt+Up exec ~/.config/sway/scripts.d/project.sh EXTERNAL_ONLY $scale
|
||||
bindsym $mod+Alt+Down exec ~/.config/sway/scripts.d/project.sh PRIMARY_ONLY $scale
|
||||
|
|
|
@ -69,14 +69,14 @@ get_id() {
|
|||
}
|
||||
|
||||
die() {
|
||||
notify-send -u critical -t 3000 "Sway" "Failed to get display"
|
||||
notify-send -u critical -t 3000 "Sway" "$1"
|
||||
kill $PID
|
||||
}
|
||||
|
||||
PRIMARY=$(get_id "eDP-1" || die)
|
||||
EXTERNAL=$(get_id "DP" || get_id "HDMI" || die)
|
||||
PRIMARY=$(get_id "eDP-1" || die "Failed to get primary display")
|
||||
EXTERNAL=$(get_id "DP" || get_id "HDMI" || die "Failed to get external display")
|
||||
|
||||
PRIMARY_SCALE=1.5
|
||||
PRIMARY_SCALE=$2
|
||||
EXTERNAL_SCALE=1
|
||||
|
||||
set_monitors() {
|
||||
|
|
1
packages
1
packages
|
@ -55,6 +55,7 @@ networkmanager
|
|||
nodejs
|
||||
noto-fonts-cjk
|
||||
npm
|
||||
octave
|
||||
opendoas
|
||||
p7zip
|
||||
pacman-contrib
|
||||
|
|
Loading…
Reference in a new issue