From c94ee099e9ce44891bf3de437c6029882ced1757 Mon Sep 17 00:00:00 2001 From: jstmax! Date: Sun, 2 Nov 2025 15:16:52 +0100 Subject: added sway cfg --- cfg/i3/sway/config | 174 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 cfg/i3/sway/config (limited to 'cfg') diff --git a/cfg/i3/sway/config b/cfg/i3/sway/config new file mode 100644 index 0000000..f2c597f --- /dev/null +++ b/cfg/i3/sway/config @@ -0,0 +1,174 @@ +# ========================= +# クロナのSwayチエッフギ +# ==> maxwasmailed@proton.me +# ========================= + +# ------------------------- +# mod key +# ------------------------- +set $mod Mod4 + +# ------------------------- +# default terminal & launcher +# ------------------------- +set $term alacritty +set $shell fish + +# ------------------------ +# system & controls +# ------------------------ +bindsym Mod1+Space exec jmdmenu run +bindsym $mod+BackSpace exec jmdmenu run +bindsym $mod+Return exec $term +#bindsym $mod+v exec jmdmenu clipbd +bindsym $mod+period exec jmdmenu bmj +bindsym $mod+Shift+c exec xcolor | jmdmenu +bindsym $mod+e exec nemo +# functions binds +bindsym XF86MonBrightnessUp exec brightnessctl set +5% +bindsym XF86MonBrightnessDown exec brightnessctl set 5%- +# more accurate (1%/i) +bindsym $mod+XF86MonBrightnessUp exec brightnessctl set +1% +bindsym $mod+XF86MonBrightnessDown exec brightnessctl set 1%- +# volume up / down +bindsym XF86AudioRaiseVolume exec pamixer -i 5 +bindsym XF86AudioLowerVolume exec pamixer -d 5 +# more accurate (1%/i) +bindsym $mod+XF86AudioRaiseVolume exec pamixer -i 1 +bindsym $mod+XF86AudioLowerVolume exec pamixer -d 1 +# mute speakers +bindsym XF86AudioMute exec pamixer -t +# mute mic +bindsym XF86AudioMicMute exec pamixer --default-source -t +# compose key +input * xkb_options compose:ralt +# fallback to **KILL** dmenu when it freezes because fuck sway i guess +bindsym $mod+Alt_L+q exec kill -9 dmenu + + +# ------------------------- +# window management +# ------------------------- +for_window [floating] resize set 672 432 + +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +bindsym $mod+q kill +bindsym $mod+t floating toggle && resize set 672 432 + +bindsym $mod+v split v +bindsym $mod+h split h + +bindsym $mod+w layout toggle tabbed split + +bindsym $mod+Ctrl+Tab focus next +bindsym $mod+Ctrl+Shift+Tab focus prev +bindsym $mod+Tab exec i3-msg workspace next_on_output +bindsym $mod+Shift+Tab exec i3-msg workspace prev_on_output + +# ------------------------- +# a bit of layout +# ------------------------- +exec --no-startup-id i3-msg gaps horizontal all set 32 +exec --no-startup-id i3-msg gaps vertical all set 8 + +# ------------------------- +# workspaces +# ------------------------- +set $ws1 "1:f" +set $ws2 "2:u" +set $ws3 "3:c" +set $ws4 "4:k" +set $ws5 "5:my" +set $ws6 "6:l" +set $ws7 "7:i" +set $ws8 "8:f" +set $ws9 "9:e" + +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 + +bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 + +# ------------------------- +# i dont know where to put this crap +# ------------------------- +focus_follows_mouse yes +floating_modifier $mod + +# ------------------------- +# borders / titlebars +# ------------------------- +client.focused #f82323 #101010 #f82323 #101010 +client.focused_inactive #101010 #101010 #f82323 #101010 +client.unfocused #101010 #101010 #f82323 #101010 +client.urgent #101010 #101010 #f82323 #101010 + +# ------------------------- +# bar black + white (kurobar.sh) +# ------------------------- +bar { + #status_command i3status + status_command ~/.config/i3/kurobar.sh + font pango:chirufont 10 + position top + colors { + background #101010 + statusline #f82323 + separator #f82323 + focused_workspace #101010 #f82323 #101010 + active_workspace #101010 #f82323 #101010 + inactive_workspace #101010 #101010 #f82323 + urgent_workspace #101010 #101010 #f82323 + } +} + +# ------------------------- +# startup +# ------------------------- +exec --no-startup-id export GTK_USE_PORTAL=0 +exec --no-startup-id export XDG_CURRENT_DESKTOP=GNOME +exec --no-startup-id sudo systemctl --user mask xdg-desktop-portal-kde.service +exec --no-startup-id ibus-daemon -drx +exec --no-startup-id nm-applet +exec --no-startup-id xsetroot -cursor_name left_ptr +exec --no-startup-id xsetroot -solid "#1f1f1f" +exec --no-startup-id swaybg -i ~/Pictures/murasam.png -m fill +exec --no-startup-id kwalletd6 +exec --no-startup-id blueman-applet +# input +input "type:touchpad" { + tap enabled +} + + +# ------------------------- +# reload / restart / exit +# ------------------------- +bindsym $mod+Shift+r reload +bindsym $mod+Shift+e exit +bindsym $mod+l exec i3lock -c 101010 + -- cgit v1.3.1