Skip to content

Instantly share code, notes, and snippets.

@extrowerk
Created July 26, 2023 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extrowerk/e4728b5de2a542ced15a598b14414298 to your computer and use it in GitHub Desktop.
Save extrowerk/e4728b5de2a542ced15a598b14414298 to your computer and use it in GitHub Desktop.
OBSD theme
alignment top_middle
background yes
#border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
#draw_borders no
border_inner_margin 0
border_outer_margin 0
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
#:bold
xftfont B612:pixelsize=14
gap_x 0
gap_y 0
net_avg_samples 2
#no_buffers yes
double_buffer yes
out_to_console no
extra_newline no
own_window yes
# was yes ^
own_window_type normal
own_window_transparent no
own_window_colour 657b83
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 1920 15
maximum_width 1920 15
#own_window_class Conky
#own_window_type desktop
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
#color1 FFBF00
color1 fdf6e3
TEXT
${color1} [OpenBSD ${kernel}] ${color} \
${color1}[cpu] ${cpubar 7,90}${color} \
${color1}[ram] ${membar 7,90}${color} \
${color1}[${fs_free /home} free]${color} \
${color1}[charger: ${apm_adapter}]${color} \
${color1}[charge: ${apm_battery_life}]${color} \
${color1}[address: ${addr iwm0}] ${color}\
${color1}[${texeci 500 curl 'wttr.in/Budapest?format=%t\n'}] \
${alignr 0} \
${color1}[${time %Y-%m-%d}] \
${color1}[${time %H:%M}]${font}
## CWM config file
# Sticky groups: uncomment to enable worskpace-like behavior
sticky yes
# snap windows to edges at 4 pixels distance
snapdist 10
# Default font
#fontname "spleen:pixelsize=14:bold"
fontname "B612:pixelsize=14:bold"
# Appearance
borderwidth 4
color activeborder "#657b83"
color inactiveborder "#93a1a1"
color urgencyborder "#cc241d"
# Menu colors
color font "#657b83"
color selfont "#fdf6e3"
color menubg "#fdf6e3"
color menufg "#657b83"
#Gaps (top, bottom, left, right)
gap 19 1 1 1
# Size of manually tiled Windows in %
htile 50
vtile 50
# How many pixels a window gets moved by
moveamount 2
# Key bindings
## 4 = Super key
## S = shift
## M = meta key = alt
# Remove all default keybindings
unbind-key all
# Media keys.
bind-key XF86AudioLowerVolume "mixer vol -5"
bind-key XF86AudioRaiseVolume "mixer vol +5"
bind-key XF86AudioMute "mixer vol mute"
#bind-key XF86MonBrightnessUp "/bin/xbacklight -inc 10"
#bind-key XF86MonBrightnessDown "/bin/xbacklight -dec 10"
# Toggle visibility of group n, hiding all other groups
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
# Move window to group n
bind-key 4M-1 window-movetogroup-1
bind-key 4M-2 window-movetogroup-2
bind-key 4M-3 window-movetogroup-3
bind-key 4M-4 window-movetogroup-4
bind-key 4M-5 window-movetogroup-5
bind-key 4M-6 window-movetogroup-6
bind-key 4M-7 window-movetogroup-7
bind-key 4M-8 window-movetogroup-8
bind-key 4M-9 window-movetogroup-9
# Toggle visibility of all groups
bind-key 4-a group-toggle-all
# Add focused window to current group
bind-key 4-g window-group
# Lock screen
bind-key 4-l lock
# What follows is rather self-explanatory
bind-key 4-r restart
bind-key 4-q quit
bind-key 4-c window-close
bind-key 4-u window-hide
bind-key 4-f window-fullscreen
bind-key 4-m window-maximize
bind-key 4-t window-htile
bind-key 4S-t window-vtile
# Cycle/rev gerse cycle through windows
bind-key 4-j window-cycle
bind-key 4-k window-rcycle
# Snap windows
bind-key 4M-h window-snap-left
bind-key 4M-j window-snap-down
bind-key 4M-k window-snap-up
bind-key 4M-l window-snap-right
# Open menus
bind-key 4M-m menu-window
bind-key 4-g menu-group
bind-key 4-a menu-cmd
bind-key 4-e menu-exec
bind-key 4-y 'rofi -show window'
# Autogroup some apps
autogroup 1 "xterm,XTerm"
autogroup 2 "Navigator,firefox-default"
autogroup 3 "telegram-desktop,TelegramDesktop"
autogroup 4 "org.pwmt.zathura,Zathura"
autogroup 1 "gnome-terminal-server,Gnome-terminal"
# launcher
#command xterm "xterm -geometry 86x23"
command xterm "gnome-terminal"
command "-----" "true"
command browser "firefox"
command file "xfe"
command telegram "telegram-desktop"
# Ignore
ignore Conky
# mouse
bind-mouse 5 group-cycle
bind-mouse 4 group-rcycle
! IRSSI - solarized
xterm*font: fixed
xterm*boldFont: fixed
! ===== xidle
! drag pointer to lower left corner to lock screen
XIdle*position : sw
! and leave it there for one second.
XIdle*delay : 1
! also lock screen after 5 minutes idle
XIdle*timeout : 300
! ===== xlock
! actually turn the backlight off
XLock.dpmsoff : 1
! plain white-on-black lock screen
XLock.description : off
XLock.echokeys : off
XLock.info :
XLock.background : black
XLock.foreground : white
XLock.mode : blank
XLock.username : username:
XLock.password : password:
XLock.font : -misc-fixed-medium-r-normal-*-15-*-*-*-*-*-iso10646-1
XLock.planfont : -misc-fixed-medium-r-normal-*-13-*-*-*-*-*-iso10646-1
xterm*termName: xterm-256color
XTerm*deleteIsDEL: false
xterm*faceName: B612 Mono Regular
xterm*faceSize: 8
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
*background: S_base3
*foreground: S_base00
*fadeColor: S_base3
*cursorColor: S_base01
*pointerColorBackground:S_base1
*pointerColorForeground:S_base01
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3
! The reason is it breaks copy/paste if an application requests mouse events,
! because the application gets the event instead of XTerm.
XTerm*allowMouseOps: true
! Only select text, not empty space around it.
XTerm*highlightSelection: true
! Dont automatically jump to the bottom on output, but do on keypress.
XTerm*scrollTtyOutput: false
XTerm*scrollKey: true
XTerm*scrollBar: false
XTerm*eightBitInput: false
XTerm*cursorBlink: true
XTerm*geometry: 86x23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment