dotfiles/.config/spectrwm/spectrwm.conf

259 lines
7.3 KiB
Plaintext
Raw Normal View History

# __
# _________ ___ _____/ /_______ ______ ___
# / ___/ __ \/ _ \/ ___/ __/ ___/ | /| / / __ `__ \
# (__ ) /_/ / __/ /__/ /_/ / | |/ |/ / / / / / /
# /____/ .___/\___/\___/\__/_/ |__/|__/_/ /_/ /_/
# /_/ C-O-D-E-V-O-I-D E-D-I-T-I-O-N
#
# +--------------------------------------------------
# | WINDOW DECORATION
# +--------------------------------------------------
border_width = 1
color_focus = rgb:ff/6A/00
color_focus_maximized = rgb:ff/6A/00
color_focus_maximized_free = rgb:ff/6A/00
color_focus_free = rgb:77/77/77
color_unfocus = rgb:47/47/47
color_unfocus_free = rgb:47/47/47
tile_gap = 12
region_padding = 12
disable_border = 1
# +--------------------------------------------------
# | BAR SETTINGS
# +--------------------------------------------------
bar_enabled = 1
bar_border_width = 2
bar_border = rgb:18/18/18
bar_border_unfocus = rgb:18/18/18
bar_border_free = rgb:18/18/18
bar_color = rgb:18/18/18
bar_color_free = rgb:18/18/18
bar_color_selected = rgb:18/24/28
bar_font_color = rgb:99/99/99,rgb:ff/6A/00,red
bar_font_color_selected = rgb:ff/ff/ff
bar_font_color_free = rgb:99/99/99
bar_font = CozetteHidpi:pixelsize=26
bar_action = cbar
bar_action_expand = 0
bar_at_bottom = 0
# +< Pad with a space
# +A Output of the external script
# +C Window class (from WM_CLASS)
# +D Workspace name
# +F Focus status indicator
# +I Workspace index
# +L Workspace list indicator
# +M Number of iconic (minimized) windows in workspace
# +N Screen number
# +P Window class and instance separated by a colon
# +R Region index
# +S Stacking algorithm
# +T Window instance (from WM_CLASS)
# +U Urgency hint
# +V Program version
# +w Number of windows in workspace
# +W Window name (from _NET_WM_NAME/WM_NAME)
# ++ A literal +
# +@ Prefix for text markup sequences
bar_format = +S WS:+I/+R  H:+M  +W +|2R +A %b %d %H:%M
#bar_format = +I +S (+M) +|1R +A %Y-%m-%d %H:%M
# +--------------------------------------------------
# | WORKSPACE LAYOUT
# +--------------------------------------------------
workspace_indicator = listall,markcurrent,markactive,markempty,markurgent,noindexes
workspace_mark_active = '[A]'
workspace_mark_current = '+@fg=1;[C]+@fg=0;'
workspace_mark_empty = '[ ]'
workspace_mark_urgent = '+@fg=2;[I]+@fg=0;'
workspace_limit = 10
stack_mark_horizontal = 'D'
stack_mark_horizontal_flip = 'U'
stack_mark_vertical = '>'
stack_mark_vertical_flip = '<'
stack_mark_max = 'M'
stack_mark_floating = 'F'
verbose_layout = 0
urgent_enabled = 1
2023-01-18 15:40:47 +01:00
# +--------------------------------------------------
# | FOCUS BEHAVIOR
# +--------------------------------------------------
workspace_clamp = 1
workspace_autorotate = 0
warp_focus = 0
warp_pointer = 0
cycle_visible = 0
focus_close_wrap = 1
focus_mode = default
click_to_raise = 1
# +--------------------------------------------------
# | QUIRKS
# +--------------------------------------------------
quirk[scratchpad] = FLOAT + ANYWHERE
quirk[XConsole:xconsole] = FLOAT + ANYWHERE + NOFOCUSCYCLE + NOFOCUSONMAP
2022-12-04 23:38:14 +01:00
# +--------------------------------------------------
# | RESET ALL KEYBOARD MAPPINGS
# +--------------------------------------------------
keyboard_mapping /dev/null
# +--------------------------------------------------
# | REGISTERED PROGRAMS
# +--------------------------------------------------
2022-12-04 23:38:14 +01:00
program[sterm] = sterm
bind[sterm] = MOD+Return
2022-12-04 23:38:14 +01:00
program[bterm] = bterm
bind[bterm] = MOD+Shift+Return
2022-12-04 23:38:14 +01:00
program[hterm] = hterm
bind[hterm] = MOD+Control+Return
2023-03-28 18:19:41 +02:00
program[irssi] = texec x
bind[irssi] = MOD+Shift+X
2023-03-28 18:19:41 +02:00
program[man] = dexec_mail
bind[man] = MOD+Shift+M
2023-03-28 18:19:41 +02:00
program[vpn] = dexec_vpn
bind[vpn] = MOD+V
2023-03-28 18:19:41 +02:00
program[omutt] = texec mutt-openbsd-all
bind[omutt] = MOD+Shift+O
2022-12-13 23:16:23 +01:00
program[exec] = dexec
bind[exec] = MOD+D
2022-12-04 23:38:14 +01:00
program[ssh] = dexec_ssh
bind[ssh] = MOD+S
2022-12-04 23:38:14 +01:00
program[ports] = dexec_port
bind[ports] = MOD+Shift+S
program[audio] = dexec_audio
bind[audio] = MOD+O
2023-04-10 13:56:24 +02:00
2023-01-07 21:45:05 +01:00
program[scratchpad] = sp
2022-12-17 10:27:50 +01:00
bind[scratchpad] = MOD+minus
program[xconsole] = xcons
bind[xconsole] = MOD+Shift+minus
program[apps] = dexec_apps
bind[apps] = MOD+A
2022-12-04 23:38:14 +01:00
program[browser] = dexec_browser
bind[browser] = MOD+Shift+F
2022-12-04 23:38:14 +01:00
program[pass] = dexec_pass
bind[pass] = MOD+Shift+P
2022-12-04 23:38:14 +01:00
program[pim] = dexec_pim
bind[pim] = MOD+P
2022-12-04 23:38:14 +01:00
# OTHERS
program[screenshot_wind] = sshot
bind[screenshot_wind] = Print
program[xpick] = xpick_copy
bind[xpick] = MOD+Print
program[lock] = /usr/bin/false
# +--------------------------------------------------
# | KEYBOARD MAPPING
# +--------------------------------------------------
# BAR
bind[bar_toggle] = MOD+b
bind[bar_toggle_ws] = MOD+Shift+b
# LAYOUT
bind[cycle_layout] = MOD+l
bind[flip_layout] = MOD+Shift+l
bind[float_toggle] = MOD+space
bind[free_toggle] = MOD+Shift+space
# FOCUS
bind[focus_main] = MOD+m
bind[focus_next] = MOD+Down
#bind[focus_next] = MOD+Tab
bind[focus_prev] = MOD+Up
bind[focus_prev] = MOD+Shift+Tab
bind[focus_urgent] = MOD+u
#bind[focus_free] = MOD+Shift+BackSpace
# ICONFIY / HIDE
bind[uniconify] = MOD+Shift+i
bind[iconify] = MOD+i
# MASTER
bind[master_add] = MOD+comma
bind[master_del] = MOD+period
bind[master_grow] = MOD+Right
bind[master_shrink] = MOD+Left
bind[stack_dec] = MOD+Shift+comma
bind[stack_inc] = MOD+Shift+period
#bind[stack_reset] = MOD+Shift+space
bind[maximize_toggle] = MOD+f
#bind[fullscreen_toggle] = MOD+f
# WS NAVIGATION
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
bind[ws_10] = MOD+0
bind[ws_next_all] = MOD+Page_Down
bind[ws_prev_all] = MOD+Page_Up
bind[ws_prior] = MOD+Tab
# MOVE WINDOW TO OTHER WS
bind[rg_next] = MOD+dead_circumflex
bind[rg_move_next] = MOD+Shift+dead_circumflex
bind[ws_next_move] = MOD+Shift+Page_Down
bind[ws_prev_move] = MOD+Shift+Page_Up
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
bind[mvws_10] = MOD+Shift+0
# RENAME WS
bind[name_workspace] = MOD+r
# MOVE WINDOW WITHIN WS
bind[swap_main] = MOD+M
bind[swap_next] = MOD+Shift+Down
bind[swap_prev] = MOD+Shift+Up
# DELETE WINDOW
bind[wind_del] = MOD+q
bind[wind_kill] = MOD+Shift+q
bind[restart] = MOD+Shift+r
autorun = ws[10]:xcons