1
0
Fork 0

Update sway configs

This commit is contained in:
Gregory Eremin 2023-02-14 10:58:22 +01:00
parent a7ce5182d1
commit e54a1e7869
11 changed files with 93 additions and 17 deletions

View File

@ -21,5 +21,9 @@ include @sysconfdir@/sway/config.d/*
include $HOME/.config/sway/config.d/* include $HOME/.config/sway/config.d/*
# Color Scheme # Color Scheme
include $HOME/.config/sway/themes/dracula include $HOME/.config/sway/themes/dracula2
# include $HOME/.config/sway/themes/default # include $HOME/.config/sway/themes/default
exec wl-clipsync
exec mako
exec env QT_QPA_PLATFORM=wayland kwalletd5

View File

@ -5,7 +5,6 @@
# Read `man 5 sway-bar` for more information about this section. # Read `man 5 sway-bar` for more information about this section.
bar { bar {
font $uifont
position top position top
swaybar_command waybar swaybar_command waybar
} }

View File

@ -2,5 +2,23 @@
# Display configurations # Display configurations
# #
# Set UI scale to 1.5 on home display (AOC U2790) # Laptop screen
# output eDP-1 position 1920 0 scale 2
output eDP-1 position 2560 0 scale 2
# Home display (AOC U2790)
output "Unknown U2790B 0x000007CE" scale 1.5 output "Unknown U2790B 0x000007CE" scale 1.5
# Office Dell 24"
# output "Dell Inc. DELL U2412M YPPY07AV1AHB" position 0 0
output "Dell Inc. DELL U2421HE CD8LV83" position 0 0
# Office Dell 27" 1080p
output "Dell Inc. DELL P2719HC 6T1Y223" position 0 0
# Maison n9 TV
output "Samsung Electric Company SAMSUNG 0x00000701" res 3840x2160 scale 2 position 0 0
# Current office 4K LG screen
output "LG Electronics LG HDR 4K 0x0000E7EC" position 0 0 scale 1.5 res 3840x2160

View File

@ -18,7 +18,7 @@ bindsym --locked Alt+F10 exec screens-off
bindsym --locked Alt+F1 exec screens-on bindsym --locked Alt+F1 exec screens-on
# Start a terminal # Start a terminal
bindsym $mod+Return exec termite bindsym $mod+Return exec alacritty
# Start your launcher # Start your launcher
# set $menu dmenu_path | dmenu | xargs swaymsg exec -- # set $menu dmenu_path | dmenu | xargs swaymsg exec --
@ -39,6 +39,11 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #d
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
# Media player controls # Media player controls
seat * keyboard_grouping none
bindsym XF86AudioPlay exec playerctl -p spotify,plasma-browser-integration play-pause bindsym XF86AudioPlay exec playerctl -p spotify,plasma-browser-integration play-pause
bindsym XF86AudioNext exec playerctl -p spotify,plasma-browser-integration next bindsym XF86AudioNext exec playerctl -p spotify,plasma-browser-integration next
bindsym XF86AudioPrev exec playerctl -p spotify,plasma-browser-integration previous bindsym XF86AudioPrev exec playerctl -p spotify,plasma-browser-integration previous
# Laptop screen brightness
bindsym XF86MonBrightnessUp exec --no-startup-id laptop-screen-brightness up 10
bindsym XF86MonBrightnessDown exec --no-startup-id laptop-screen-brightness down 10

View File

@ -2,9 +2,11 @@
# Scratchpad # Scratchpad
# #
# All keybindings are disabled to avoid confusion
# Move the currently focused window to the scratchpad # Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad # bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show # bindsym $mod+minus scratchpad show

View File

@ -0,0 +1,2 @@
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

View File

@ -2,6 +2,20 @@
# Window rules # Window rules
# #
for_window [window_type="dialog"] floating enable
for_window [window_type="splash"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_type="dropdown_menu"] floating enable
for_window [window_type="popup_menu"] floating enable
for_window [window_type="tooltip"] floating enable
for_window [app_id="nm-connection-editor"] floating enable for_window [app_id="nm-connection-editor"] floating enable
for_window [app_id="pavucontrol"] floating enable for_window [app_id="pavucontrol"] floating enable
for_window [app_id="spotify-qt"] floating enable for_window [app_id="spotify-qt"] floating enable
# Annoying and pointless sharing indicator
# First make it float so that window layout doesn't change before it gets killed
# for_window [app_id="firefox" title="Firefox - Sharing Indicator"] floating enable
for_window [app_id="firefox" title="^Firefox .* Sharing Indicator$"] floating enable
for_window [app_id="firefox" title="^Firefox .* Sharing Indicator$"] kill

14
sway/config.d/zoom.conf Normal file
View File

@ -0,0 +1,14 @@
# ~/.config/sway/config.d/zoom.us.conf
#
# Zoom Meeting App
#
# Default for all windows is non-floating.
#
# For pop up notification windows that don't use notifications api
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

View File

@ -1,8 +1,8 @@
# Default theme that came with sway # Default theme that came with sway
# Changed focused background color a bit # Changed focused background color a bit
# class border backgr. text wtf . child_border # wtf = indicator? # class border bg text indic child_border
client.focused #14568c #0e3f66 #ffffff #14568c #14568c client.focused #14568c #0e3f66 #ffffff #14568c #14568c
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222 client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000 client.urgent #2f343a #900000 #ffffff #900000 #900000

View File

@ -2,10 +2,11 @@
# https://github.com/dracula/i3/blob/master/.config/i3/config # https://github.com/dracula/i3/blob/master/.config/i3/config
# Slightly modified # Slightly modified
client.focused #ffb86c #ffb86c #282a36 #ffb86c #ffb86c # class border bg text indic child_border
client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A client.focused #ffb86c #ffb86c #282a36 #ffb86c #ffb86c
client.unfocused #44475A #282A36 #F8F8F2 #44475A #44475A client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555 client.unfocused #44475A #282A36 #F8F8F2 #44475A #44475A
client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36 client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
client.background #F8F8F2 client.background #F8F8F2

17
sway/themes/dracula2 Normal file
View File

@ -0,0 +1,17 @@
set $color1 "#14568c"
set $color2 "#0e3f66"
set $color3 "#ffffff"
set $color4 "#333333"
set $color5 "#5f676a"
set $color6 "#484e50"
set $color7 "#222222"
set $color8 "#2f343a"
set $color9 "#888888"
set $color0 "#900000"
set $colorx "#292d2e"
# class border bg text indic child_border
client.focused $color1 $color2 $color3 $color1 $color1
client.focused_inactive $color4 $color5 $color3 $color6 $color5
client.unfocused $color4 $color7 $color9 $colorx $color7
client.urgent $color8 $color0 $color3 $color0 $color0