organize a bit
|
@ -24,37 +24,15 @@ set $lock $HOME/.config/sway/lock.sh
|
||||||
set $menu rofi -show combi | xargs swaymsg exec --
|
set $menu rofi -show combi | xargs swaymsg exec --
|
||||||
|
|
||||||
### Output configuration
|
### Output configuration
|
||||||
#
|
|
||||||
# Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/)
|
|
||||||
# output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
|
||||||
output * bg /home/0xa/Pictures/tiles/343.png tile
|
output * bg /home/0xa/Pictures/tiles/343.png tile
|
||||||
# output * bg /home/grue/Pictures/paper.jpg fill
|
|
||||||
# output * bg ./wall.jpg fill
|
|
||||||
|
|
||||||
#
|
# screen lock
|
||||||
# Example configuration:
|
|
||||||
#
|
|
||||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
|
||||||
#
|
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
|
||||||
|
|
||||||
### Idle configuration
|
|
||||||
#
|
|
||||||
# Example configuration:
|
|
||||||
#
|
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 $lock \
|
timeout 300 $lock \
|
||||||
timeout 303 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 303 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep $lock
|
before-sleep $lock
|
||||||
#
|
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
|
||||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
#
|
|
||||||
# Example configuration:
|
|
||||||
#
|
|
||||||
input type:touchpad {
|
input type:touchpad {
|
||||||
accel_profile adaptive
|
accel_profile adaptive
|
||||||
click_method clickfinger
|
click_method clickfinger
|
||||||
|
@ -70,9 +48,6 @@ input type:keyboard {
|
||||||
xkb_layout "us,ru"
|
xkb_layout "us,ru"
|
||||||
xkb_options "caps:ctrl_modifier,grp:alt_space_toggle"
|
xkb_options "caps:ctrl_modifier,grp:alt_space_toggle"
|
||||||
}
|
}
|
||||||
#
|
|
||||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
|
||||||
# Read `man 5 sway-input` for more information about this section.
|
|
||||||
|
|
||||||
focus_follows_mouse yes
|
focus_follows_mouse yes
|
||||||
# mouse_warping container
|
# mouse_warping container
|
||||||
|
@ -298,7 +273,7 @@ mode "resize" {
|
||||||
bindsym --to-code $mod+r mode "resize"
|
bindsym --to-code $mod+r mode "resize"
|
||||||
|
|
||||||
## Styling: colors
|
## Styling: colors
|
||||||
include colors
|
include ./colors/foot-colors
|
||||||
|
|
||||||
## Window styling
|
## Window styling
|
||||||
# Border BG Text Indicator Child Border
|
# Border BG Text Indicator Child Border
|
||||||
|
@ -339,27 +314,5 @@ exec blueman-applet
|
||||||
exec_always pkill kanshi; exec kanshi
|
exec_always pkill kanshi; exec kanshi
|
||||||
# exec udiskie --tray --no-automount
|
# exec udiskie --tray --no-automount
|
||||||
|
|
||||||
# window rules
|
|
||||||
# floating
|
|
||||||
for_window [app_id="imv"] floating enable; border normal
|
|
||||||
for_window [app_id="org.twosheds.iwgtk"] floating enable; border normal
|
|
||||||
for_window [app_id=".blueman-manager-wrapped"] floating enable; border normal
|
|
||||||
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable; border normal
|
|
||||||
|
|
||||||
# tabbed containers
|
|
||||||
for_window [app_id="CubicSDR"] layout tabbed
|
|
||||||
for_window [app_id="org.wireshark.Wireshark"] layout tabbed
|
|
||||||
|
|
||||||
for_window [app_id="zoom" title="^zoom$"] border none, floating enable
|
|
||||||
# For specific Zoom windows
|
|
||||||
for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable
|
|
||||||
for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700
|
|
||||||
# Open Zoom Meeting windows on a new workspace (a bit hacky)
|
|
||||||
for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open
|
|
||||||
# kill firefox sharing indicator
|
|
||||||
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
|
||||||
# fix picture-in-picture behaviour
|
|
||||||
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable, sticky enable, border none
|
|
||||||
|
|
||||||
include ./config.d/*
|
include ./config.d/*
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|
22
sway/.config/sway/config.d/window_overrides
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# window rules
|
||||||
|
# floating
|
||||||
|
for_window [app_id="imv"] floating enable; border normal
|
||||||
|
for_window [app_id="org.twosheds.iwgtk"] floating enable; border normal
|
||||||
|
for_window [app_id=".blueman-manager-wrapped"] floating enable; border normal
|
||||||
|
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable; border normal
|
||||||
|
|
||||||
|
# tabbed containers
|
||||||
|
for_window [app_id="CubicSDR"] layout tabbed
|
||||||
|
for_window [app_id="org.wireshark.Wireshark"] layout tabbed
|
||||||
|
|
||||||
|
for_window [app_id="zoom" title="^zoom$"] border none, floating enable
|
||||||
|
# For specific Zoom windows
|
||||||
|
for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable
|
||||||
|
for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700
|
||||||
|
# Open Zoom Meeting windows on a new workspace (a bit hacky)
|
||||||
|
for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open
|
||||||
|
# kill firefox sharing indicator
|
||||||
|
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
||||||
|
# fix picture-in-picture behaviour
|
||||||
|
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable, sticky enable, border none
|
||||||
|
|
Before Width: | Height: | Size: 503 KiB After Width: | Height: | Size: 503 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 527 KiB After Width: | Height: | Size: 527 KiB |