2019-04-18 02:24:19 +00:00
|
|
|
### Variables
|
|
|
|
#
|
|
|
|
set $mod Mod4
|
2019-11-25 17:23:38 +00:00
|
|
|
set $ctrl Control
|
2019-04-18 02:24:19 +00:00
|
|
|
set $left h
|
|
|
|
set $down j
|
|
|
|
set $up k
|
|
|
|
set $right l
|
|
|
|
set $term kitty
|
2020-06-27 04:21:13 +00:00
|
|
|
set $scripts $HOME/.config/sway/scripts
|
2020-08-25 01:07:30 +00:00
|
|
|
set $rofi-scripts $HOME/.config/rofi/scripts
|
2020-06-27 04:21:13 +00:00
|
|
|
set $tty-popup $scripts/tty-popup
|
2020-05-15 16:15:58 +00:00
|
|
|
|
2020-06-27 04:49:33 +00:00
|
|
|
set $menu bash $scripts/menu
|
2020-06-27 04:24:22 +00:00
|
|
|
set $pass_menu $tty-popup pass $scripts/fzf-pass
|
2020-07-13 16:05:09 +00:00
|
|
|
set $clip_menu $tty-popup pass $scripts/clipboard menu
|
2020-05-15 16:15:58 +00:00
|
|
|
|
2020-06-27 04:49:33 +00:00
|
|
|
set $printscreen bash $scripts/printscreen
|
2019-06-02 04:04:28 +00:00
|
|
|
|
2019-10-06 05:36:31 +00:00
|
|
|
# Support for picture in picture mode.
|
|
|
|
# There is currently no support for automatically positioning it in the bottom
|
|
|
|
# left corner as xdotool doesn't exist in wayland
|
2019-05-15 02:37:21 +00:00
|
|
|
set $PIP floating enabled ; sticky enabled ; border pixel 0
|
|
|
|
for_window [class="mpv"] $PIP
|
|
|
|
for_window [class="pip"] $PIP
|
2020-06-27 04:24:22 +00:00
|
|
|
for_window [class="feh"] $PIP
|
2020-07-09 23:52:43 +00:00
|
|
|
for_window [class="firefox" title="^Picture-in-Picture$"] $PIP
|
2020-06-27 04:21:13 +00:00
|
|
|
for_window [app_id="tty-popup"] focus; $PIP
|
|
|
|
for_window [app_id="tty-popup" title="^pass$"] resize set 33 ppt 33 ppt
|
2019-04-18 02:24:19 +00:00
|
|
|
|
|
|
|
# Status Bar:
|
|
|
|
bar {
|
|
|
|
swaybar_command waybar
|
|
|
|
}
|
|
|
|
|
2019-06-02 02:03:51 +00:00
|
|
|
include config.d/*
|