organize a bit

This commit is contained in:
Grisha Shipunov 2025-02-17 16:16:32 +01:00
parent 4c04d60003
commit 28fc82f37a
8 changed files with 24 additions and 49 deletions

View file

@ -24,37 +24,15 @@ set $lock $HOME/.config/sway/lock.sh
set $menu rofi -show combi | xargs swaymsg exec --
### 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/grue/Pictures/paper.jpg fill
# output * bg ./wall.jpg fill
#
# 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:
#
# screen lock
exec swayidle -w \
timeout 300 $lock \
timeout 303 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
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
#
# Example configuration:
#
input type:touchpad {
accel_profile adaptive
click_method clickfinger
@ -70,9 +48,6 @@ input type:keyboard {
xkb_layout "us,ru"
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
# mouse_warping container
@ -298,7 +273,7 @@ mode "resize" {
bindsym --to-code $mod+r mode "resize"
## Styling: colors
include colors
include ./colors/foot-colors
## Window styling
# Border BG Text Indicator Child Border
@ -339,27 +314,5 @@ exec blueman-applet
exec_always pkill kanshi; exec kanshi
# 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 /etc/sway/config.d/*

View 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

View file

Before

Width:  |  Height:  |  Size: 503 KiB

After

Width:  |  Height:  |  Size: 503 KiB

View file

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View file

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View file

Before

Width:  |  Height:  |  Size: 527 KiB

After

Width:  |  Height:  |  Size: 527 KiB