feat: switch to kitty
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
# vi: ft=confj
|
||||
# /go
|
||||
# vim: ft=swayconfig
|
||||
|
||||
# Default config for sway
|
||||
#
|
||||
@@ -7,7 +6,7 @@
|
||||
#
|
||||
# Read `man 5 sway` for a complete reference.
|
||||
|
||||
exec export $(dbus-launch --exit-with-session);
|
||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
|
||||
### Variables
|
||||
#
|
||||
@@ -32,26 +31,29 @@ set $screenshot wl-copy < "$($grimshot --notify save screen $screenshot_dir/scrn
|
||||
set $windowshot wl-copy < "$($grimshot --notify save window $screenshot_dir/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png)"
|
||||
|
||||
# Default Programs
|
||||
set $term alacritty
|
||||
set $term kitty
|
||||
set $explorer nautilus
|
||||
set $mail geary
|
||||
set $browser google-chrome --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
set $browser google-chrome-beta --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
|
||||
set $config_editor ~/.config/sway/config_editor.sh
|
||||
set $debug_window ~/.config/sway/debug_window.sh
|
||||
set $settings gnome-control-center
|
||||
set $toggle_layout ~/.config/sway/toggle_layout.sh
|
||||
set $toggle_gaps ~/.config/sway/toggle_gaps.sh
|
||||
set $toggle_bar ~/.config/sway/toggle_bar.sh
|
||||
set $web_search $wofi_scripts/web-search.sh
|
||||
set $select_window ~/.config/sway/select_window.sh
|
||||
set $lock_screen ~/.config/sway/lock_screen.sh
|
||||
set $select_emoji $wofi_scripts/wofi-emoji
|
||||
set $password_mngr rofi-rbw --selector wofi
|
||||
set $password_mngr rofi-rbw --selector wofi --typer wtyper --cliboarder wl-copy
|
||||
set $open_localhost $wofi_scripts/open-localhost
|
||||
set $bluetooth_mngr blueman-manager
|
||||
|
||||
# Input configuration
|
||||
input * {
|
||||
xkb_layout de
|
||||
xkb_capslock disabled
|
||||
tap enabled
|
||||
}
|
||||
|
||||
smart_gaps off
|
||||
@@ -89,12 +91,12 @@ exec swayidle -w \
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
input "1739:24385:Synaptics_TM2438-005" {
|
||||
dwt enabled
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
middle_emulation enabled
|
||||
}
|
||||
#
|
||||
# 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.
|
||||
@@ -110,6 +112,7 @@ exec swayidle -w \
|
||||
bindsym $mod+e exec $explorer
|
||||
bindsym $mod+Comma exec $settings
|
||||
bindsym $mod+b exec $browser
|
||||
bindsym $mod+Shift+b exec $bluetooth_mngr
|
||||
bindsym $mod+Shift+Comma exec $config_editor
|
||||
bindsym $mod+a exec $web_search
|
||||
bindsym $mod+p exec $password_mngr
|
||||
@@ -138,7 +141,7 @@ exec swayidle -w \
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
# bindsym $mod+$right focus right
|
||||
bindsym $mod+$right focus right
|
||||
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+Left focus left
|
||||
@@ -151,6 +154,7 @@ exec swayidle -w \
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
@@ -159,46 +163,52 @@ exec swayidle -w \
|
||||
#
|
||||
# Workspaces:
|
||||
#
|
||||
for_window [class="zoom"] floating enable
|
||||
for_window [app_id="gnome-calculator"] floating enable
|
||||
for_window [title="Zoom Meeting.*"] floating disable
|
||||
for_window [title="Zoom Meeting.*"] inhibit_idle visible
|
||||
|
||||
set $ws1 "1: Code"
|
||||
assign [class="Alacritty"] $ws1
|
||||
assign [app_id="Alacritty"] $ws1
|
||||
set $ws2 "2: Browser"
|
||||
assign [class="Firefox"] $ws2
|
||||
assign [class="Chromium"] $ws2
|
||||
assign [class="Google-chrome-beta"] $ws2
|
||||
assign [class="Google-chrome"] $ws2
|
||||
assign [class="Chromium"] $ws2
|
||||
assign [class="Google-chrome-beta"] $ws2
|
||||
assign [app_id="google-chrome-beta"] $ws2
|
||||
assign [class="Google-chrome"] $ws2
|
||||
assign [app_id="google-chrome"] $ws2
|
||||
set $ws3 "3: Music"
|
||||
assign [class="Spotify"] $ws3
|
||||
assign [class="spotify"] $ws3
|
||||
assign [class="Spotify"] $ws3
|
||||
assign [class="spotify"] $ws3
|
||||
assign [app_id="dev.alextren.Spot"] $ws3
|
||||
set $ws4 "4: Chat"
|
||||
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace $ws1
|
||||
bindsym $mod+2 workspace $ws2
|
||||
bindsym $mod+3 workspace $ws3
|
||||
bindsym $mod+4 workspace $ws4
|
||||
bindsym $mod+5 workspace number 5
|
||||
bindsym $mod+6 workspace number 6
|
||||
bindsym $mod+7 workspace number 7
|
||||
bindsym $mod+8 workspace number 8
|
||||
bindsym $mod+9 workspace number 9
|
||||
bindsym $mod+0 workspace number 10
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number 5
|
||||
bindsym $mod+Shift+6 move container to workspace number 6
|
||||
bindsym $mod+Shift+7 move container to workspace number 7
|
||||
bindsym $mod+Shift+8 move container to workspace number 8
|
||||
bindsym $mod+Shift+9 move container to workspace number 9
|
||||
bindsym $mod+Shift+0 move container to workspace number 10
|
||||
# Note: workspaces can have any name you want, not just numbers.
|
||||
# We just use 1-10 as the default.
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace $ws1
|
||||
bindsym $mod+2 workspace $ws2
|
||||
bindsym $mod+3 workspace $ws3
|
||||
bindsym $mod+4 workspace $ws4
|
||||
bindsym $mod+5 workspace number 5
|
||||
bindsym $mod+6 workspace number 6
|
||||
bindsym $mod+7 workspace number 7
|
||||
bindsym $mod+8 workspace number 8
|
||||
bindsym $mod+9 workspace number 9
|
||||
bindsym $mod+0 workspace number 10
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number 5
|
||||
bindsym $mod+Shift+6 move container to workspace number 6
|
||||
bindsym $mod+Shift+7 move container to workspace number 7
|
||||
bindsym $mod+Shift+8 move container to workspace number 8
|
||||
bindsym $mod+Shift+9 move container to workspace number 9
|
||||
bindsym $mod+Shift+0 move container to workspace number 10
|
||||
# Note: workspaces can have any name you want, not just numbers.
|
||||
# We just use 1-10 as the default.
|
||||
|
||||
for_window [class="zoom"] floating enable
|
||||
for_window [title="Zoom Meeting.*"] floating disable
|
||||
for_window [title="Zoom Meeting.*"] inhibit_idle visible
|
||||
|
||||
#
|
||||
# Layout stuff:
|
||||
@@ -212,6 +222,7 @@ for_window [title="Zoom Meeting.*"] inhibit_idle visible
|
||||
# Switch the current container between different layout styles
|
||||
bindsym $mod+w exec $toggle_layout
|
||||
bindsym $mod+g exec $toggle_gaps
|
||||
bindsym $mod+Shift+g exec $toggle_bar
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
@@ -226,16 +237,18 @@ for_window [title="Zoom Meeting.*"] inhibit_idle visible
|
||||
# bindsym $mod+a focus parent
|
||||
|
||||
# Screenshots
|
||||
# -- Entire Screen
|
||||
bindsym $mod+s exec $screenshot
|
||||
# -- Area Screenshot
|
||||
bindsym $mod+Shift+s exec $screenclip
|
||||
# -- Select Window
|
||||
bindsym $mod+Control+s exec $windowshot
|
||||
# -- Entire Screen
|
||||
bindsym $mod+s exec $screenshot
|
||||
|
||||
bindsym $mod+i exec $select_emoji
|
||||
bindsym $mod+l exec $lock_screen
|
||||
bindsym $mod+Tab exec $select_window
|
||||
bindsym $mod+Shift+i exec $debug_window
|
||||
bindsym $mod+o exec $open_localhost
|
||||
bindsym $mod+c exec $lock_screen
|
||||
bindsym Alt+Tab exec $select_window
|
||||
bindsym $mod+m exec $mail
|
||||
#
|
||||
# Scratchpad:
|
||||
@@ -257,10 +270,16 @@ mode "resize" {
|
||||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 10px
|
||||
bindsym $down resize grow height 10px
|
||||
bindsym $up resize shrink height 10px
|
||||
bindsym $right resize grow width 10px
|
||||
bindsym $left resize shrink width 100px
|
||||
bindsym $down resize grow height 100px
|
||||
bindsym $up resize shrink height 100px
|
||||
bindsym $right resize grow width 100px
|
||||
|
||||
|
||||
bindsym Shift+$left resize shrink width 20px
|
||||
bindsym Shift+$down resize grow height 20px
|
||||
bindsym Shift+$up resize shrink height 20px
|
||||
bindsym Shift+$right resize grow width 20px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 10px
|
||||
@@ -274,10 +293,7 @@ mode "resize" {
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
|
||||
# Do we need that?
|
||||
exec_always nm-applet --indicator
|
||||
|
||||
# Handles notifications
|
||||
exec_always mako
|
||||
@@ -294,4 +310,4 @@ bar {
|
||||
}
|
||||
|
||||
include @sysconfdir@/sway/config.d/*
|
||||
exec systemctl --user import-environment
|
||||
exec "systemctl --user import-environment SWAYSOCK WAYLAND_DISPLAY";
|
||||
|
Reference in New Issue
Block a user