fix(sway): tweak theme styles and add keybindings
This commit is contained in:
1 parent
4e3c4e6470
commit
6526f27f01
1 file changed
+58
-16
+58
-16
@@ -1,12 +1,40 @@
|
|||||||
client.focused #88c0d0 #88c0d0 #eceff4 #88c0d0 #88c0d0
|
set $rosewater #f5e0dc
|
||||||
client.focused_inactive #00000000 #00000000 #81a1c1 #00000000 #00000000
|
set $flamingo #f2cdcd
|
||||||
client.unfocused #00000000 #00000000 #81a1c1 #00000000 #00000000
|
set $pink #f5c2e7
|
||||||
client.urgent #d08770 #d08770 #eceff4 #d08770 #d08770
|
set $mauve #cba6f7
|
||||||
font pango:Noto Sans Mono 10
|
set $red #f38ba8
|
||||||
smart_gaps off
|
set $maroon #eba0ac
|
||||||
smart_borders off
|
set $peach #fab387
|
||||||
gaps inner 3
|
set $yellow #f9e2af
|
||||||
gaps outer 1
|
set $green #a6e3a1
|
||||||
|
set $teal #94e2d5
|
||||||
|
set $sky #89dceb
|
||||||
|
set $sapphire #74c7ec
|
||||||
|
set $blue #89b4fa
|
||||||
|
set $lavender #b4befe
|
||||||
|
set $text #cdd6f4
|
||||||
|
set $subtext1 #bac2de
|
||||||
|
set $subtext0 #a6adc8
|
||||||
|
set $overlay2 #9399b2
|
||||||
|
set $overlay1 #7f849c
|
||||||
|
set $overlay0 #6c7086
|
||||||
|
set $surface2 #585b70
|
||||||
|
set $surface1 #45475a
|
||||||
|
set $surface0 #313244
|
||||||
|
set $base #1e1e2e
|
||||||
|
set $mantle #181825
|
||||||
|
set $crust #11111b
|
||||||
|
client.focused $surface0 $surface0 $text $maroon $teal
|
||||||
|
client.focused_inactive $surface0 $surface0 $text $surface0 $surface0
|
||||||
|
client.unfocused $base $base $text $surface0 $surface0
|
||||||
|
client.urgent $peach $surface0 $peach $peach $peach
|
||||||
|
client.placeholder $surface0 $base $text $surface0 $surface0
|
||||||
|
client.background $base
|
||||||
|
font pango:JetBrainsMono Nerd Font 10
|
||||||
|
smart_gaps no
|
||||||
|
smart_borders yes
|
||||||
|
gaps inner 0
|
||||||
|
gaps outer 0
|
||||||
default_border pixel 1
|
default_border pixel 1
|
||||||
default_floating_border pixel 1
|
default_floating_border pixel 1
|
||||||
titlebar_border_thickness 0
|
titlebar_border_thickness 0
|
||||||
@@ -31,14 +59,18 @@ workspace 3 output HDMI-A-2
|
|||||||
workspace 4 output HDMI-A-2
|
workspace 4 output HDMI-A-2
|
||||||
workspace 5 output HDMI-A-2
|
workspace 5 output HDMI-A-2
|
||||||
workspace 6 output HDMI-A-2
|
workspace 6 output HDMI-A-2
|
||||||
workspace 7 output DP-1
|
workspace 7 output HDMI-A-2
|
||||||
workspace 8 output DP-1
|
workspace 8 output HDMI-A-2
|
||||||
workspace 9 output DP-2
|
workspace 9 output DP-1
|
||||||
workspace 10 output DP-2
|
workspace 10 output DP-2
|
||||||
workspace 1
|
workspace 1
|
||||||
output DP-1 bg ~/Pictures/wallhaven-43qlkd.jpg fill
|
#output DP-1 bg ~/Pictures/wallhaven-43qlkd.jpg fill
|
||||||
output HDMI-A-2 bg ~/Pictures/wallhaven-478kjo.jpg fill
|
#output HDMI-A-2 bg ~/Pictures/wallhaven-478kjo.jpg fill
|
||||||
output DP-2 bg ~/Pictures/wallhaven-4gx713.jpg fill
|
#output DP-2 bg ~/Pictures/wallhaven-4gx713.jpg fill
|
||||||
|
seat * xcursor_theme Bibata-Original-Classic 28
|
||||||
|
output DP-1 bg $base solid_color
|
||||||
|
output HDMI-A-2 bg $base solid_color
|
||||||
|
output DP-2 bg $base solid_color
|
||||||
output DP-1 resolution 1280x1024 position 0,220
|
output DP-1 resolution 1280x1024 position 0,220
|
||||||
output HDMI-A-2 resolution 1920x1080 position 1280,0
|
output HDMI-A-2 resolution 1920x1080 position 1280,0
|
||||||
output DP-2 resolution 1280x102 position 3200,220
|
output DP-2 resolution 1280x102 position 3200,220
|
||||||
@@ -82,6 +114,10 @@ bindsym --to-code $mod+m focus mode_toggle
|
|||||||
bindsym --to-code $mod+Shift+m floating toggle
|
bindsym --to-code $mod+Shift+m floating toggle
|
||||||
bindsym --to-code $mod+s scratchpad show
|
bindsym --to-code $mod+s scratchpad show
|
||||||
bindsym --to-code $mod+Shift+s move scratchpad
|
bindsym --to-code $mod+Shift+s move scratchpad
|
||||||
|
bindsym --to-code $mod+w layout toggle split
|
||||||
|
bindsym --to-code $mod+t layout tabbed
|
||||||
|
bindsym --to-code $mod+Ctrl+$right splith
|
||||||
|
bindsym --to-code $mod+Ctrl+$down splitv
|
||||||
bindsym --to-code --locked XF86AudioRaiseVolume exec wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
bindsym --to-code --locked XF86AudioRaiseVolume exec wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
bindsym --to-code --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
bindsym --to-code --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
bindsym --to-code --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
bindsym --to-code --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
@@ -92,11 +128,15 @@ bindsym --to-code --locked XF86AudioNext exec playerctl next
|
|||||||
bindsym --to-code --locked XF86AudioPause exec playerctl play-pause
|
bindsym --to-code --locked XF86AudioPause exec playerctl play-pause
|
||||||
bindsym --to-code --locked XF86AudioPlay exec playerctl play-pause
|
bindsym --to-code --locked XF86AudioPlay exec playerctl play-pause
|
||||||
bindsym --to-code --locked XF86AudioPrev exec playerctl previous
|
bindsym --to-code --locked XF86AudioPrev exec playerctl previous
|
||||||
|
bindsym --to-code XF86Tools exec foot zsh -ic 'rmpc'
|
||||||
|
bindsym --to-code XF86Explorer exec $file
|
||||||
|
bindsym --to-code XF86Mail exec firefox
|
||||||
|
#bindsym --to-code XF86Calculator exec firefox
|
||||||
bindsym --to-code Print exec area=$(slurp) && grim -g "$area" - | wl-copy && notify-send -u low "Screenshot" "Captured: $area"
|
bindsym --to-code Print exec area=$(slurp) && grim -g "$area" - | wl-copy && notify-send -u low "Screenshot" "Captured: $area"
|
||||||
bindsym --to-code $mod+Print exec active_class=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true) | .app_id // .window_properties.class // "unknown"') && geom=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true) | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"') && grim -g "$geom" - | wl-copy && notify-send -u low "Screenshot" "Captured: $active_class"
|
bindsym --to-code $mod+Print exec active_class=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true) | .app_id // .window_properties.class // "unknown"') && geom=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true) | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"') && grim -g "$geom" - | wl-copy && notify-send -u low "Screenshot" "Captured: $active_class"
|
||||||
bindsym --to-code ctrl+Print exec monitor=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused==true) | .name') && grim -o "$monitor" - | wl-copy && notify-send -u low "Screenshot" "Captured: $monitor"
|
bindsym --to-code ctrl+Print exec monitor=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused==true) | .name') && grim -o "$monitor" - | wl-copy && notify-send -u low "Screenshot" "Captured: $monitor"
|
||||||
bindsym --to-code $mod+u exec sh -c 'rbw get ed-ssh | jq -r ".fields[]? | select(.name==\"privateKey\") | .text" | ssh-add -'
|
bindsym --to-code $mod+u exec sh -c 'rbw get ed-ssh | jq -r ".fields[]? | select(.name==\"privateKey\") | .text" | ssh-add -'
|
||||||
bindsym --to-code $mod+b exec rofi-rbw --selector rofi --selector-args="-theme ~/.config/rofi/bitwarden.rasi -mesg 'alt+1: <span foreground=\\\"#d8dee9\\\">type username/password</span>\nalt+2: <span foreground=\\\"#d8dee9\\\">type username</span>\talt+3: <span foreground=\\\"#d8dee9\\\">type password</span>\talt+4: <span foreground=\\\"#d8dee9\\\">type totp</span>\talt+u: <span foreground=\\\"#d8dee9\\\">copy username</span>\talt+c: <span foreground=\\\"#d8dee9\\\">copy password</span>\talt+t: <span foreground=\\\"#d8dee9\\\">copy totp</span>\talt+m: <span foreground=\\\"#d8dee9\\\">menu</span>\t\talt+s: <span foreground=\\\"#d8dee9\\\">sync logins</span>'"
|
bindsym --to-code $mod+b exec rofi-rbw --selector rofi --selector-args="-theme ~/.config/rofi/bitwarden.rasi -mesg 'alt+1: <span foreground=\\\"#a6adc8\\\">type username/password</span>\nalt+2: <span foreground=\\\"#a6adc8\\\">type username</span>\talt+3: <span foreground=\\\"#a6adc8\\\">type password</span>\talt+4: <span foreground=\\\"#a6adc8\\\">type totp</span>\t\talt+u: <span foreground=\\\"#a6adc8\\\">copy username</span>\talt+c: <span foreground=\\\"#a6adc8\\\">copy password</span>\talt+t: <span foreground=\\\"#a6adc8\\\">copy totp</span>\t\talt+m: <span foreground=\\\"#a6adc8\\\">menu</span>\t\talt+s: <span foreground=\\\"#a6adc8\\\">sync logins</span>'"
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
bindsym --to-code $left resize shrink width 10px
|
bindsym --to-code $left resize shrink width 10px
|
||||||
bindsym --to-code $down resize grow height 10px
|
bindsym --to-code $down resize grow height 10px
|
||||||
@@ -124,3 +164,5 @@ bindsym --to-code $mod+r mode "resize"
|
|||||||
bindsym --to-code $mod+Shift+r mode "reload sway? [y/n]"
|
bindsym --to-code $mod+Shift+r mode "reload sway? [y/n]"
|
||||||
bindsym --to-code $mod+x mode "lock sway? [y/n]"
|
bindsym --to-code $mod+x mode "lock sway? [y/n]"
|
||||||
bindsym --to-code $mod+Shift+x mode "exit sway? [y/n]"
|
bindsym --to-code $mod+Shift+x mode "exit sway? [y/n]"
|
||||||
|
#for_window [title="rmpc"] floating enable, resize set width 800 height 500, move position center
|
||||||
|
for_window [class="steam_app(.*)"] floating enable
|
||||||
Reference in new issue
Block a user