# Spectrwm Config File # https://github.com/conformal/spectrwm workspace_limit = 9 focus_mode = default focus_close = previous focus_close_wrap = 1 focus_default = last spawn_position = next workspace_clamp = 0 warp_focus = 0 warp_pointer = 1 # Window Decorations # color_focus = rgb:e4/6a/6a # Material-Black-Cherry # color_focus = rgb:86/6c/b4 # Material-Black-Plum color_focus = rgb:a9/dc/76 # Material-Black-Lime color_unfocus = rgb:0f/10/1a border_width = 1 disable_border = 1 region_padding = 6 tile_gap = 6 # ---------------------------------- Bar ----------------------------------- bar_action = ~/.config/polybar/launch.sh bar_action_expand = 1 bar_enabled = 1 bar_border_width = 5 bar_border[1] = rgb:28/2a/36 bar_border_unfocus[1] = rgb:28/2a/36 bar_color[1] = rgb:28/2a/36, rgb:00/80/80 bar_color_selected[1] = rgb:00/80/80 bar_delay = 1 bar_font_color[1] = rgb:bb/c5/ff, rgb:e1/ac/ff, rgb:dd/ff/a7, rgb:ff/8b/92, rgb:ff/e5/85, rgb:89/dd/ff bar_font_color_selected = black bar_font = Noto-Sans-fonts:size=11 awesome-terminal-fonts:size=11 NotoMonoRegular:bold:size=14' bar_justify = center bar_format = +N:+I +S (+D) | +A workspace_indicator = listcurrent,listactive,markcurrent,printnames bar_at_bottom = 0 stack_enabled = 1 clock_enabled = 0 clock_format = %a %b %d %R %Z %Y iconic_enabled = 0 maximize_hide_bar = 0 window_class_enabled = 1 window_instance_enabled = 1 window_name_enabled = 1 verbose_layout = 1 urgent_enabled = 1 # Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0 # # dialog_ratio = 0.6 # # # Split a non-RandR dual head setup into one region per monitor # # (non-standard driver-based multihead is not seen by spectrwm) # # region = screen[1]:1280x1024+0+0 # # region = screen[1]:1280x1024+1280+0 # ------------------------------- Workspaces ------------------------------- # Get the icons at https://www.nerdfonts.com/cheat-sheet (you need a Nerd Font) name = ws[1]:1 name = ws[2]:2 name = ws[3]:3 name = ws[4]:4 name = ws[5]:5 name = ws[6]:6 name = ws[7]:7 name = ws[8]:8 name = ws[9]:9 # ---------------------------------- Keys ---------------------------------- modkey = Mod4 # ---------------- Windows ----------------- # Switch between windows in current stack pane bind[focus_next] = MOD+j bind[focus_prev] = MOD+k # Change window sizes bind[master_grow] = MOD+Shift+l bind[master_shrink] = MOD+Shift+h # Toggle floating bind[float_toggle] = MOD+Shift+f # Move windows up or down in current stack bind[swap_next] = MOD+Shift+j bind[swap_prev] = MOD+Shift+k # Toggle between layouts bind[cycle_layout] = MOD+Tab # Kill window bind[wind_del] = MOD+w # Focus next/prev monitor bind[rg_next] = MOD+period bind[rg_prev] = MOD+comma # Restart bind[restart] = MOD+Control+r # Quit bind[quit] = MOD+Control+q # --------------- Workspaces --------------- # Go to workspace N bind[ws_1] = MOD+1 bind[ws_2] = MOD+2 bind[ws_3] = MOD+3 bind[ws_4] = MOD+4 bind[ws_5] = MOD+5 bind[ws_6] = MOD+6 bind[ws_7] = MOD+7 bind[ws_8] = MOD+8 bind[ws_9] = MOD+9 # Move window to workspace N bind[mvws_1] = MOD+Shift+1 bind[mvws_2] = MOD+Shift+2 bind[mvws_3] = MOD+Shift+3 bind[mvws_4] = MOD+Shift+4 bind[mvws_5] = MOD+Shift+5 bind[mvws_6] = MOD+Shift+6 bind[mvws_7] = MOD+Shift+7 bind[mvws_8] = MOD+Shift+8 bind[mvws_9] = MOD+Shift+9 # Send workspace to next / prev screen # bind[rg_move_next] = MOD+Control+j # bind[rg_move_prev] = MOD+Control+k # ------------------ Apps ------------------ # Menu program[menu] = dmenu_run -fn 'Noto Sans Mono:size=15' bind[menu] = MOD+p program[rofi] = rofi -show drun bind[rofi] = MOD+space # Nav program[nav] = rofi -show bind[nav] = MOD+Shift+space # Terminal # program[alacritty] = alacritty program[st] = st bind[st] = MOD+Shift+Return # Powermenu program[powermenu] = ~/bin/power bind[powermenu] = MOD+Shift+q # Browser program[firefox] = firefox bind[firefox] = MOD+b # File explorer program[pcmanfm] = pcmanfm bind[pcmanfm] = MOD+e # Redshift program[redon] = redshift -O 2400 bind[redon] = MOD+r program[redoff] = redshift -x bind[redoff] = MOD+Shift+r # Screenshot program[flameshot] = flameshot gui bind[flameshot] = MOD+s program[flameshot-screen] = flameshot screen -c bind[flameshot-screen] = MOD+Shift+s # ---------------- Hardware ---------------- # Volume #program[voldown] = pactl set-sink-volume @DEFAULT_SINK@ -5% #bind[voldown] = XF86AudioLowerVolume #program[volup] = pactl set-sink-volume @DEFAULT_SINK@ +5% #bind[volup] = XF86AudioRaiseVolume #program[mute] = pactl set-sink-mute @DEFAULT_SINK@ toggle #bind[mute] = XF86AudioMute # Brightness #program[brup] = brightnessctl set +10% #bind[brup] = XF86MonBrightnessUp #program[brdown] = brightnessctl set 10%- #bind[brdown] = XF86MonBrightnessDown # -------------------------------- Autorun --------------------------------- autorun = ws[1]:~/.config/spectrwm/autostart.sh quirk[trayer] = FLOAT + ANYWHERE + MINIMALBORDER + NOFOCUSCYCLE + NOFOCUSONMAP