dotfiles/sway/config

38 lines
1.1 KiB
Plaintext
Raw Normal View History

### Variables
#
set $mod Mod4
2019-11-25 17:23:38 +00:00
set $ctrl Control
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
set $tty-popup $scripts/tty-popup
set $menu bash ~/.config/sway/scripts/menu
set $pass_menu $term --class fzf-pass -e sh -c /usr/bin/fzf-pass
set $clipman_menu bash ~/.config/sway/scripts/menu_clipman
set $clipman_clear_menu bash ~/.config/sway/scripts/clipman_clear_menu
set $printscreen bash ~/.config/sway/scripts/printscreen
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
set $PIP floating enabled ; sticky enabled ; border pixel 0
for_window [class="mpv"] $PIP
for_window [class="pip"] $PIP
for_window [window_role="PictureInPicture"] $PIP
2019-11-25 17:23:38 +00:00
for_window [class="feh"] floating enabled ; border pixel 0
for_window [app_id="fzf-pass"] focus, floating enabled, border pixel 1
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
# Status Bar:
bar {
swaybar_command waybar
}
include config.d/*