# LEL # # _ _____ # (_)___ / # | | |_ \ # | |___) | # |_|____/ # # Variables {{{ # # Logo key. set $mod Mod4 # Home row direction keys, like vim set $left h set $down j set $up k set $right l set $term alacritty # set $menu bmenu run $term set $menu rofi -show drun font pango:Hack 14px # }}} # Key bindings: {{{ # Basic {{{ # # Start a terminal bindsym $mod+Return exec $term #start web browser bindsym $mod+q exec qutebrowser #start file manager bindsym $mod+m exec nemo # Kill focused window bindsym $mod+x kill # Start your launcher bindsym $mod+d exec $menu # Fill passwords bindsym Control+$mod+p exec keepmenu # mouse button for dragging. floating_modifier $mod # Reload the configuration file bindsym $mod+Shift+c reload # Restart i3 inplace bindsym $mod+Shift+r restart # Lock i3 bindsym $mod+Control+s exec i3lock # Exit i3 bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'" # }}} bindsym XF86MonBrightnessUp exec xbacklight -inc 5 bindsym XF86MonBrightnessDown exec xbacklight -dec 5 bindsym mod1+Tab exec rofi -show window # Moving around: {{{ # # Move your focus around bindsym $mod+$left focus left bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # Move the focused window with the same, but add Shift bindsym $mod+Shift+$left move left bindsym $mod+Shift+$down move down bindsym $mod+Shift+$up move up bindsym $mod+Shift+$right move right # Resizing containers: bindsym $mod+Control+$left resize shrink width 10px bindsym $mod+Control+$down resize grow height 10px bindsym $mod+Control+$up resize shrink height 10px bindsym $mod+Control+$right resize grow width 10px # }}} # Workspaces: {{{ # # Switch to workspace 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 # Move focused container to workspace 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 # Assign programs to their workspace assign [class=qutebrowser] workspace 2 assign [class=keepassxc] workspace 8 assign [class=Steam] workspace 9 assign [class=TelegramDesktop] workspace 10 assign [class=discord] workspace 10 # }}} # Layout stuff: {{{ # # Splits bindsym $mod+b splith bindsym $mod+v splitv # Layout styles bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # Make the current focus fullscreen bindsym $mod+f fullscreen # Floating bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle # Move focus to the parent container bindsym $mod+a focus parent # }}} # Screenshots: {{{ # # Screens to file bindsym Print exec grim $(xdg-user-dir PICTURES)/$(date +'%Y-%m-%d-%H%M%S_grim.png') # Screen area to file bindsym Shift+Print exec grim -g "$(slurp)" $(xdg-user-dir PICTURES)/$(date +'%Y-%m-%d-%H%M%S_grim-slurp.png') # Screen area to clipboard bindsym Control+Shift+Print exec grim -g "$(slurp)" - | wl-copy # Focused monitor to clipboard bindsym Control+Print exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy # Screen recorder bindsym Control+Alt+Shift+r exec wf-recorder -a # }}} # Audio: {{{ # bindsym $mod+p exec pulse-sink for_window [class=pavucontrol] floating enable # Volume controll bindsym XF86AudioRaiseVolume exec pavolume volup 5 bindsym XF86AudioLowerVolume exec pavolume voldown 5 bindsym XF86AudioMute exec pavolume mutetoggle # Media player controls bindsym XF86AudioPlay exec playerctl -p mpd play-pause bindsym XF86AudioNext exec playerctl -p mpd next bindsym XF86AudioPrev exec playerctl -p mpd previous bindsym $mod+Shift+x exec musmenu delete bindsym $mod+Shift+s exec musmenu search # }}} # }}} # Visual: {{{ # exec hsetroot -solid '#252525' set $accent #CC575D set $fg_color #ffffff set $bg_color #191919 set $alert #000000 # border background text indicator child_border client.focused $accent $accent $fg_color $accent $accent client.focused_inactive $bg_color $bg_color $fg_color $bg_color $bg_color client.unfocused $bg_color $bg_color $fg_color $bg_color $bg_color client.urgent $alert $alert $fg_color $alert $alert exec_always ~/.config/polybar/launch.sh default_border pixel 2 gaps inner 10 # smart_gaps on # smart_borders on for_window [class=mpv] floating toggle # set theme set $gnome-schema org.gnome.desktop.interface exec_always kvantummanager --set MateriaDark exec_always gsettings set $gnome-schema gtk-theme 'materia-custom-accent-dark' exec_always gsettings set $gnome-schema icon-theme 'Papirus-Dark' exec_always gsettings set $gnome-schema cursor-theme 'capitaine-cursors' # }}} # Daemons {{{ # #Compositor exec picom #Notification Daemon exec dunst # Block device Mounter to /run/media/ exec udiskie # Blue light filter exec redshift # kde connect exec /usr/lib/kdeconnectd exec kdeconnect-indicator # Telegram exec --no-startup-id telegram-desktop # Music Player Daemon exec mpd --no-daemon exec mpDris2 # Use i3lock exec xss-lock --transfer-sleep-lock -- i3lock --nofork # Network manager icon exec nm-applet # PulseAudio icon exec pasystray --notify=all --volume-max=100 --volume-inc=5 # Ouput manager exec autorandr --change #}}} # vim:filetype=i3config:foldmethod=marker