114 lines
3.2 KiB
Plaintext
114 lines
3.2 KiB
Plaintext
### Output configuration
|
|
#
|
|
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
|
#output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
|
output * bg ~/Desktop/background.png fill
|
|
|
|
set $GREEN "#00AA00FF"
|
|
set $LGREEN "#00FF00FF"
|
|
set $DGREEN "#006600FF"
|
|
set $BLACK "#000000FF"
|
|
client.focused $GREEN $BLACK $GREEN $LGREEN $DGREEN
|
|
client.unfocused $DGREEN $BLACK $DGREEN $DGREEN $DGREEN
|
|
|
|
#
|
|
# Workspaces:
|
|
#
|
|
set $W1 '1:STAT'
|
|
set $W2 '2:INV'
|
|
set $W3 '3:DATA'
|
|
set $W4 '4:MAP'
|
|
set $W5 '5:RADIO'
|
|
set $W6 '6:6'
|
|
set $W7 '7:7'
|
|
set $W8 '8:8'
|
|
set $W9 '9:9'
|
|
|
|
set $WSTAT $W1
|
|
set $WINV $W2
|
|
set $WDATA $W3
|
|
set $WMAP $W4
|
|
set $WRADIO $W5
|
|
|
|
# Switch to workspace
|
|
bindsym $mod+1 workspace $W1
|
|
bindsym $mod+2 workspace $W2
|
|
bindsym $mod+3 workspace $W3
|
|
bindsym $mod+4 workspace $W4
|
|
bindsym $mod+5 workspace $W5
|
|
bindsym $mod+6 workspace $W6
|
|
bindsym $mod+7 workspace $W7
|
|
bindsym $mod+8 workspace $W8
|
|
bindsym $mod+9 workspace $W9
|
|
bindsym $mod+0 workspace $W10
|
|
# Move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace $W1
|
|
bindsym $mod+Shift+2 move container to workspace $W2
|
|
bindsym $mod+Shift+3 move container to workspace $W3
|
|
bindsym $mod+Shift+4 move container to workspace $W4
|
|
bindsym $mod+Shift+5 move container to workspace $W5
|
|
bindsym $mod+Shift+6 move container to workspace $W6
|
|
bindsym $mod+Shift+7 move container to workspace $W7
|
|
bindsym $mod+Shift+8 move container to workspace $W8
|
|
bindsym $mod+Shift+9 move container to workspace $W9
|
|
bindsym $mod+Shift+0 move container to workspace $W10
|
|
# Note: workspaces can have any name you want, not just numbers.
|
|
# We just use 1-10 as the default.
|
|
|
|
#
|
|
# Power Button
|
|
#
|
|
set $pplock 'swayphone_power_sleep'
|
|
set $ppunlock 'swayphone_power_wakeup'
|
|
set $lockapp swaylock
|
|
set $lock '$lockapp -f -c 000000'
|
|
set $unlock 'killall $lockapp'
|
|
## wish this worked...
|
|
#bindsym XF86PowerOff exec $lock
|
|
#bindsym --locked XF86PowerOff exec $unlock
|
|
# alternative:
|
|
bindcode 124 exec $lock; exec $pplock
|
|
bindcode --locked 124 exec $unlock; exec $ppunlock
|
|
|
|
exec swayidle -w \
|
|
timeout 15 'swaymsg exec $lock; $pplock' \
|
|
resume 'swaymsg exec $unlock; $ppunlock' \
|
|
before-sleep 'swaymsg exec $lock; $pplock'
|
|
|
|
# Scale the touchscreen LCD UI
|
|
output DSI-1 scale 2
|
|
|
|
# Bind input and output for correct rotation support
|
|
input 1046:4097:Goodix_Capacitive_TouchScreen map_to_output DSI-1
|
|
#output DSI-1 transform 0
|
|
#output DSI-1 transform 90
|
|
output DSI-1 transform 270
|
|
|
|
# Keyboard
|
|
exec "squeekboard"
|
|
|
|
# Status Bar
|
|
exec "waybar -c ~/.config/waybar/config -b side"
|
|
exec "waybar -c ~/.config/waybar/config_left -b side_left"
|
|
|
|
# Restore backlight
|
|
exec 'swayphone_power_wakeup'
|
|
|
|
# INV
|
|
exec "portfolio-fm"
|
|
for_window [app_id="portfolio-fm"] move workspace $WINV; border none
|
|
|
|
# DATA
|
|
exec "epiphany"
|
|
for_window [app_id="epiphany"] move workspace $WDATA; border none
|
|
|
|
# RADIO
|
|
exec "killall mpd ; mpd"
|
|
exec "xfmpc"
|
|
for_window [app_id="xfmpc"] move workspace $WRADIO; border none
|
|
|
|
# Welcome message
|
|
exec "mako" # notify daemon
|
|
exec "sleep 2; notify-send 'Welcome!' 'Your Pip-Boy is ready to be used.' --icon=dialog-information"
|
|
|