mirror of
https://github.com/Cametendo/MyI3Config-fork.git
synced 2026-03-18 03:40:20 +01:00
128 lines
4.8 KiB
Plaintext
128 lines
4.8 KiB
Plaintext
# ----------------------------------------
|
|
# Minimal i3/sway config
|
|
# ----------------------------------------
|
|
|
|
set $mod Mod4
|
|
font pango:monospace 10
|
|
|
|
# ----------------------------------------
|
|
# Applications (from settings/)
|
|
# ----------------------------------------
|
|
bindsym $mod+Return exec ~/.config/MyI3Config/settings/terminal.sh
|
|
bindsym $mod+b exec ~/.config/MyI3Config/settings/browser.sh
|
|
bindsym $mod+e exec ~/.config/MyI3Config/settings/filemanager.sh
|
|
bindsym $mod+Ctrl+c exec ~/.config/MyI3Config/settings/calculator.sh
|
|
bindsym $mod+Ctrl+Return exec --no-startup-id rofi -show drun
|
|
bindsym $mod+v exec --no-startup-id ~/.config/MyI3Config/scripts/clipboard.sh #clipboard history
|
|
bindsym $mod+Shift+v exec code
|
|
|
|
# ----------------------------------------
|
|
# Window management
|
|
# ----------------------------------------
|
|
bindsym $mod+q kill
|
|
bindsym $mod+Shift+q exec --no-startup-id ~/.config/MyI3Config/scripts/kill-same-class.sh
|
|
bindsym $mod+f fullscreen toggle
|
|
bindsym $mod+t floating toggle
|
|
bindsym $mod+j split toggle
|
|
bindsym $mod+m fullscreen toggle
|
|
|
|
# visual monitor arrangement tool (handled by script)
|
|
bindsym $mod+p exec ~/.config/MyI3Config/scripts/display-tool.sh
|
|
|
|
# ----------------------------------------
|
|
# Overlay power menu
|
|
# ----------------------------------------
|
|
bindsym $mod+Control+q exec --no-startup-id ~/.config/MyI3Config/scripts/overlay-menu.sh
|
|
|
|
# ----------------------------------------
|
|
# Focus / move / resize
|
|
# ----------------------------------------
|
|
bindsym $mod+Left focus left
|
|
bindsym $mod+Down focus down
|
|
bindsym $mod+Up focus up
|
|
bindsym $mod+Right focus right
|
|
|
|
bindsym $mod+Control+Left move left; move cursor to window
|
|
bindsym $mod+Control+Down move down; move cursor to window
|
|
bindsym $mod+Control+Up move up; move cursor to window
|
|
bindsym $mod+Control+Right move right; move cursor to window
|
|
|
|
bindsym $mod+Shift+Left resize shrink width 10 px or 10 ppt
|
|
bindsym $mod+Shift+Down resize grow height 10 px or 10 ppt
|
|
bindsym $mod+Shift+Up resize shrink height 10 px or 10 ppt
|
|
bindsym $mod+Shift+Right resize grow width 10 px or 10 ppt
|
|
|
|
# ----------------------------------------
|
|
# Workspaces
|
|
# ----------------------------------------
|
|
bindsym $mod+1 workspace 1
|
|
bindsym $mod+2 workspace 2
|
|
bindsym $mod+3 workspace 3
|
|
bindsym $mod+4 workspace 4
|
|
bindsym $mod+5 workspace 5
|
|
bindsym $mod+6 workspace 6
|
|
bindsym $mod+7 workspace 7
|
|
bindsym $mod+8 workspace 8
|
|
bindsym $mod+9 workspace 9
|
|
bindsym $mod+0 workspace 10
|
|
|
|
bindsym $mod+Shift+1 move container to workspace 1
|
|
bindsym $mod+Shift+2 move container to workspace 2
|
|
bindsym $mod+Shift+3 move container to workspace 3
|
|
bindsym $mod+Shift+4 move container to workspace 4
|
|
bindsym $mod+Shift+5 move container to workspace 5
|
|
bindsym $mod+Shift+6 move container to workspace 6
|
|
bindsym $mod+Shift+7 move container to workspace 7
|
|
bindsym $mod+Shift+8 move container to workspace 8
|
|
bindsym $mod+Shift+9 move container to workspace 9
|
|
bindsym $mod+Shift+0 move container to workspace 10
|
|
|
|
# ----------------------------------------
|
|
# Reload / Restart
|
|
# ----------------------------------------
|
|
bindsym $mod+Shift+c reload
|
|
bindsym $mod+Shift+r restart
|
|
|
|
# ----------------------------------------
|
|
# Screenshot (handled by script)
|
|
# ----------------------------------------
|
|
bindsym $mod+Shift+s exec ~/.config/MyI3Config/scripts/screenshot.sh
|
|
|
|
# ----------------------------------------
|
|
# Keyboard layout (handled by script)
|
|
# ----------------------------------------
|
|
exec --no-startup-id ~/.config/MyI3Config/scripts/keyboard-setup.sh
|
|
bindsym $mod+space exec --no-startup-id ~/.config/MyI3Config/scripts/layout-toggle.sh
|
|
|
|
# ----------------------------------------
|
|
# Lock (handled by script)
|
|
# ----------------------------------------
|
|
bindsym $mod+l exec ~/.config/MyI3Config/scripts/lock.sh
|
|
|
|
# ----------------------------------------
|
|
# Visuals
|
|
# ----------------------------------------
|
|
default_border pixel 1
|
|
floating_modifier $mod
|
|
focus_follows_mouse yes
|
|
|
|
# ----------------------------------------
|
|
# Fn keys (Dual bindings - both syntaxes)
|
|
# ----------------------------------------
|
|
|
|
bindsym XF86MonBrightnessUp exec brightnessctl -q s +1%
|
|
bindsym XF86MonBrightnessDown exec brightnessctl -q s 1%-
|
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-mute @DEFAULT_SINK@ 0 && pactl set-sink-volume @DEFAULT_SINK@ +5%
|
|
bindsym XF86AudioLowerVolume exec pactl set-sink-mute @DEFAULT_SINK@ 0 && pactl set-sink-volume @DEFAULT_SINK@ -5%
|
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
bindsym XF86AudioPlay exec playerctl play-pause
|
|
bindsym XF86AudioPause exec playerctl pause
|
|
bindsym XF86AudioNext exec playerctl next
|
|
bindsym XF86AudioPrev exec playerctl previous
|
|
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
|
|
# ----------------------------------------
|
|
# Startup (handled by script)
|
|
# ----------------------------------------
|
|
exec --no-startup-id ~/.config/MyI3Config/scripts/startup.sh
|