From 334ea55045252867f0f7a48b85d10ba4c0b3fde6 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Mon, 17 Apr 2023 14:02:55 -0300 Subject: sway config based on i3 --- .config/sway/config | 206 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 .config/sway/config (limited to '.config/sway/config') diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..d1414fb --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,206 @@ +#========================================================== +# +# ██╗██████╗ ██████╗ █████╗ ██████╗ ███████╗ +# ██║╚════██╗ ██╔════╝ ██╔══██╗██╔══██╗██╔════╝ +# ██║ █████╔╝█████╗██║ ███╗███████║██████╔╝███████╗ +# ██║ ╚═══██╗╚════╝██║ ██║██╔══██║██╔═══╝ ╚════██║ +# ██║██████╔╝ ╚██████╔╝██║ ██║██║ ███████║ +# ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚══════╝ +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! +#========================================================== + + +# ======================== Startup ======================== + +# ============ Modkey ============ +set $super Mod4 +set $term foot +set $menu rofi -show drun -show-icons + +output * bg ~/wallpaper.png fill + +input 1:1:AT_Translated_Set_2_keyboard { + xkb_layout br + xkb_options caps:swapescape +} + +input 1739:33364:Synaptics_TM3336-004 { + tap enabled + drag enabled +} + +# ============ Workspaces Setup ============ +set $ws1 "1:一" +set $ws2 "2:二" +set $ws3 "3:三" +set $ws4 "4:四" +set $ws5 "5:五" +set $ws6 "6:六" +set $ws7 "7:七" +set $ws8 "8:八" +set $ws9 "9:九" +set $ws10 "10:十" + +bindsym $super+1 workspace number $ws1 +bindsym $super+2 workspace number $ws2 +bindsym $super+3 workspace number $ws3 +bindsym $super+4 workspace number $ws4 +bindsym $super+5 workspace number $ws5 +bindsym $super+6 workspace number $ws6 +bindsym $super+7 workspace number $ws7 +bindsym $super+8 workspace number $ws8 +bindsym $super+9 workspace number $ws9 +bindsym $super+0 workspace number $ws10 + +bindsym $super+Shift+1 move container to workspace number $ws1 +bindsym $super+Shift+2 move container to workspace number $ws2 +bindsym $super+Shift+3 move container to workspace number $ws3 +bindsym $super+Shift+4 move container to workspace number $ws4 +bindsym $super+Shift+5 move container to workspace number $ws5 +bindsym $super+Shift+6 move container to workspace number $ws6 +bindsym $super+Shift+7 move container to workspace number $ws7 +bindsym $super+Shift+8 move container to workspace number $ws8 +bindsym $super+Shift+9 move container to workspace number $ws9 +bindsym $super+Shift+0 move container to workspace number $ws10 + +## ============ Colors ============ +set $background #191724 +set $accent #ebbcba +set $border #ebbcba +set $inactive_border #6e5a86 +set $unfocused_border #26233a +set $text #e0def4 +set $indicator #9ccfd8 +set $sec_indicator #908caa +set $urgent #eb6f92 +client.focused $border $background $text $indicator $border +client.focused_inactive $inactive_border $background $text $sec_indicator $inactive_border +client.unfocused $unfocused_border $background $text $sec_indicator $unfocused_border +client.urgent $urgent $background $text $indicator $urgent + +font pango:JetBrainsMono NF 9 +for_window [class=".*"] border pixel 2 +#gaps inner 5 + +bindsym $super+s exec --no-startup-id "i3-big-swap.py" + +# ======================== Keybinds ======================== +# ============ System Keybinds ============ +bindsym $super+Ctrl+c reload +bindsym $super+Ctrl+r restart +bindsym $super+q kill +bindsym $super+Ctrl+Shift+q exec poweroff +bindsym $super+Ctrl+Shift+e exit +bindsym $super+Ctrl+Shift+r exec restart + +bindsym $super+u [urgent=latest] focus + +bindsym $super+Return exec $term +bindsym $super+p exec $menu + +floating_modifier $super + +bindsym $super+b split h +bindsym $super+v split v +bindsym $super+Tab split toggle +bindsym $super+Escape workspace back_and_forth + +bindsym $super+t layout tabbed +bindsym $super+w layout default +bindsym $super+Shift+Tab layout toggle split + +bindsym $super+BackSpace focus mode_toggle +bindsym $super+Shift+BackSpace floating toggle +bindsym $super+Ctrl+BackSpace sticky toggle + +bindsym $super+f fullscreen toggle +bindsym $super+a focus parent +bindsym $super+d focus child + +# ============ Navegation & Focus Keybinds ============ +bindsym $super+h focus left +bindsym $super+j focus down +bindsym $super+k focus up +bindsym $super+l focus right + +bindsym $super+Shift+h move left +bindsym $super+Shift+j move down +bindsym $super+Shift+k move up +bindsym $super+Shift+l move right + +bindsym $super+Ctrl+h resize shrink width 5 px or 5 ppt +bindsym $super+Ctrl+j resize shrink height 5 px or 5 ppt +bindsym $super+Ctrl+k resize grow height 5 px or 5 ppt +bindsym $super+Ctrl+l resize grow width 5 px or 5 ppt + +bindsym $super+Shift+minus move scratchpad +bindsym $super+minus scratchpad show +#bindsym $super+tilda for_window [instace="dropdown_*"] scratchpad show +bindsym $super+g [class="scrcpy"] scratchpad show + +# ============ Funcion Keys ============ +bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5 +bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 +bindsym XF86AudioMute exec --no-startup-id pamixer -t + +bindsym XF86AudioPlay exec --no-startup-id "mpc toggle" +bindsym XF86AudioNext exec --no-startup-id "mpc next" +bindsym XF86AudioPrev exec --no-startup-id "mpc prev" + +bindsym $super+m mode "music" + +mode "music" { + bindsym a exec --no-startup-id "music album", mode "default" + bindsym m exec --no-startup-id "music title", mode "default" + bindsym s exec --no-startup-id "music artist", mode "default" + + bindsym Escape mode "default" +} + +bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s +5% +bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 5%- + +# ============ User Keybinds ============ +bindsym $super+Shift+S exec --no-startup-id 'grim -g "$(slurp)" - | wl-copy' + +# ============ System Application Startup ============ +exec_always --no-startup-id "~/.local/bin/hdmi-xrandr --extend" +exec_always --no-startup-id "xwallpaper --zoom \"${HOME}/.config/wallpaper\"" + +exec --no-startup-id picom --experimental-backend & + +# ============ User Application Startup ============ +# ============ Window Rules ============ +for_window [class="Pavucontrol"] floating enable +for_window [title="Picture-in-Picture"] sticky enable +for_window [class="Dragon-drag-and-drop"] sticky enable +for_window [class=".*.exe"] floating enable +for_window [class="scrcpy"] floating enable, sticky enable, move scratchpad, scratchpad show + +assign [class="leagueclient.exe"] $ws5 +assign [class="leagueclientux.exe"] $ws5 +assign [class="riotclientservices.exe"] $ws5 +assign [class="neomutt"] $ws7 +assign [class="weechat"] $ws8 +assign [class="Steam"] $ws9 +assign [class="discord"] $ws10 + +bar { + status_command i3status + strip_workspace_numbers yes + position bottom + colors { + background $background + statusline $text + separator #ff0000 + + # Category Border Background Text + focused_workspace $accent $accent #000000 + active_workspace $unfocused_border $unfocused_border $text + inactive_workspace $background $background $text + urgent_workspace $urgent $urgent $text + binding_mode $background $background $text + + } +} -- cgit v1.2.3