Created
January 12, 2026 07:46
-
-
Save mistivia/5799863c7a46341887ff17e291e53538 to your computer and use it in GitHub Desktop.
openbsd cwm config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sticky yes | |
| gap 40 5 5 5 | |
| autogroup 0 "stalonetray" | |
| unbind-key all | |
| unbind-mouse all | |
| bind-key CMS-q quit | |
| bind-key CMS-r restart | |
| bind-key 4-Return "xfce4-terminal" | |
| bind-key 4-r "rofi -show run" | |
| bind-key 4-d "rofi -show drun" | |
| bind-key 4-Tab "rofi -show window" | |
| bind-key 4S-s "flameshot gui" | |
| bind-key 4-Up window-maximize | |
| bind-key 4-f window-fullscreen | |
| bind-key 4S-q window-close | |
| bind-key M-Tab window-cycle-ingroup | |
| # bind-key 4-Down window-lower | |
| bind-key 4-1 group-only-1 | |
| bind-key 4-2 group-only-2 | |
| bind-key 4-3 group-only-3 | |
| bind-key 4-4 group-only-4 | |
| bind-key 4-5 group-only-5 | |
| bind-key 4-6 group-only-6 | |
| bind-key 4-7 group-only-7 | |
| bind-key 4-8 group-only-8 | |
| bind-key 4-9 group-only-9 | |
| bind-key 4S-1 window-movetogroup-1 | |
| bind-key 4S-2 window-movetogroup-2 | |
| bind-key 4S-3 window-movetogroup-3 | |
| bind-key 4S-4 window-movetogroup-4 | |
| bind-key 4S-5 window-movetogroup-5 | |
| bind-key 4S-6 window-movetogroup-6 | |
| bind-key 4S-7 window-movetogroup-7 | |
| bind-key 4S-8 window-movetogroup-8 | |
| bind-key 4S-9 window-movetogroup-9 | |
| bind-key 4S-Up window-move-up-big | |
| bind-key 4S-Down window-move-down-big | |
| bind-key 4S-Left window-move-left-big | |
| bind-key 4S-Right window-move-right-big | |
| bind-key 4M-Up window-resize-up | |
| bind-key 4M-Down window-resize-down | |
| bind-key 4M-Left window-resize-left-big | |
| bind-key 4M-Right window-resize-right-big | |
| bind-key C4-Left group-cycle | |
| bind-key C4-Right group-rcycle | |
| bind-mouse M-1 window-move | |
| bind-mouse M-3 window-resize | |
| borderwidth 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GTK_IM_MODULE=fcitx | |
| export GTK_IM_MODULE | |
| QT_IM_MODULE=fcitx | |
| export QT_IM_MODULE | |
| XMODIFIERS=@im=fcitx | |
| export XMODIFIERS | |
| PATH=~/bin/:$PATH | |
| export PATH | |
| LANG=en_US.UTF-8 | |
| export LANG | |
| LC_ALL=en_US.UTF-8 | |
| export LC_ALL | |
| LC_CTYPE=en_US.UTF-8 | |
| export LC_CTYPE | |
| xset b off | |
| xset m 1.9 2 | |
| polybar & | |
| picom & | |
| feh --bg-fill ~/pics/wallpaper.jpg | |
| flameshot & | |
| /bin/bash -c "sleep 5;exec fcitx5" & | |
| /bin/bash -c 'sleep 2; exec stalonetray' & | |
| /bin/bash -c 'sleep 5; xdotool windowmove $(xdotool search --class stalonetray) 888 9' & | |
| doas pkill xconsole | |
| cwm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;========================================================== | |
| ; | |
| ; | |
| ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ | |
| ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ | |
| ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ | |
| ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ | |
| ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ | |
| ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ | |
| ; | |
| ; | |
| ; To learn more about how to configure Polybar | |
| ; go to https://github.com/polybar/polybar | |
| ; | |
| ; The README contains a lot of information | |
| ; | |
| ;========================================================== | |
| [colors] | |
| background = #282A2E | |
| background-alt = #373B41 | |
| foreground = #C5C8C6 | |
| primary = #F0C674 | |
| secondary = #8ABEB7 | |
| alert = #A54242 | |
| disabled = #707880 | |
| [bar/example] | |
| width = 100% | |
| height = 24pt | |
| radius = 6 | |
| ; dpi = 96 | |
| background = ${colors.background} | |
| foreground = ${colors.foreground} | |
| line-size = 3pt | |
| border-size = 4pt | |
| border-color = #00000000 | |
| padding-left = 0 | |
| padding-right = 1 | |
| module-margin = 1 | |
| separator = | | |
| separator-foreground = ${colors.disabled} | |
| font-0 = WenQuanYi Zen Hei Mono;2 | |
| modules-left = xworkspaces xwindow | |
| modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth date | |
| cursor-click = pointer | |
| cursor-scroll = ns-resize | |
| enable-ipc = true | |
| ; wm-restack = generic | |
| ; wm-restack = bspwm | |
| ; wm-restack = i3 | |
| ; override-redirect = true | |
| ; This module is not active by default (to enable it, add it to one of the | |
| ; modules-* list above). | |
| ; Please note that only a single tray can exist at any time. If you launch | |
| ; multiple bars with this module, only a single one will show it, the others | |
| ; will produce a warning. Which bar gets the module is timing dependent and can | |
| ; be quite random. | |
| ; For more information, see the documentation page for this module: | |
| ; https://polybar.readthedocs.io/en/stable/user/modules/tray.html | |
| [module/systray] | |
| type = internal/tray | |
| format-margin = 8pt | |
| tray-spacing = 16pt | |
| [module/xworkspaces] | |
| type = internal/xworkspaces | |
| label-active = %name% | |
| label-active-background = ${colors.background-alt} | |
| label-active-underline= ${colors.primary} | |
| label-active-padding = 1 | |
| label-occupied = %name% | |
| label-occupied-padding = 1 | |
| label-urgent = %name% | |
| label-urgent-background = ${colors.alert} | |
| label-urgent-padding = 1 | |
| label-empty = %name% | |
| label-empty-foreground = ${colors.disabled} | |
| label-empty-padding = 1 | |
| [module/xwindow] | |
| type = internal/xwindow | |
| label = %title:0:60:...% | |
| #[module/filesystem] | |
| #type = internal/fs | |
| #interval = 25 | |
| # | |
| #mount-0 = / | |
| # | |
| #label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%% | |
| # | |
| #label-unmounted = %mountpoint% not mounted | |
| #label-unmounted-foreground = ${colors.disabled} | |
| [module/pulseaudio] | |
| type = internal/pulseaudio | |
| format-volume-prefix = "VOL " | |
| format-volume-prefix-foreground = ${colors.primary} | |
| format-volume = <label-volume> | |
| label-volume = %percentage%% | |
| label-muted = muted | |
| label-muted-foreground = ${colors.disabled} | |
| [module/xkeyboard] | |
| type = internal/xkeyboard | |
| blacklist-0 = num lock | |
| label-layout = %layout% | |
| label-layout-foreground = ${colors.primary} | |
| label-indicator-padding = 2 | |
| label-indicator-margin = 1 | |
| label-indicator-foreground = ${colors.background} | |
| label-indicator-background = ${colors.secondary} | |
| [module/memory] | |
| type = internal/memory | |
| interval = 2 | |
| format-prefix = "RAM " | |
| format-prefix-foreground = ${colors.primary} | |
| label = %percentage_used:2%% | |
| [module/cpu] | |
| type = internal/cpu | |
| interval = 2 | |
| format-prefix = "CPU " | |
| format-prefix-foreground = ${colors.primary} | |
| label = %percentage:2%% | |
| [network-base] | |
| type = internal/network | |
| interval = 5 | |
| format-connected = <label-connected> | |
| format-disconnected = <label-disconnected> | |
| label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected | |
| [module/wlan] | |
| inherit = network-base | |
| interface-type = wireless | |
| label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip% | |
| [module/eth] | |
| inherit = network-base | |
| interface-type = wired | |
| label-connected = %{F#F0C674}%ifname%%{F-} %local_ip% | |
| [module/date] | |
| type = internal/date | |
| interval = 1 | |
| date = %H:%M | |
| date-alt = %Y-%m-%d %H:%M:%S | |
| label = %date% | |
| label-foreground = ${colors.primary} | |
| [settings] | |
| screenchange-reload = true | |
| pseudo-transparency = true | |
| ; vim:ft=dosini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment