├── screenshots ├── Readme.md ├── atom.png ├── rofi.png └── firefox.png ├── .fehbg ├── solid.png ├── openbox ├── autostart └── rc.xml ├── rofi ├── cmd.csv ├── scripts.rasi ├── theme.rasi ├── scripts │ └── file.sh └── config.rasi ├── polybar ├── launch.sh ├── bluetooth.sh ├── bluetooth_monitor.sh └── config ├── README.md ├── usr └── share │ └── themes │ └── Rice │ └── openbox-3 │ └── themerc └── compton.conf /screenshots/Readme.md: -------------------------------------------------------------------------------- 1 | screenhots 2 | -------------------------------------------------------------------------------- /.fehbg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 'feh' '--bg-fill' '$HOME/.config/solid.png' 3 | -------------------------------------------------------------------------------- /solid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weigert/.dotfiles/HEAD/solid.png -------------------------------------------------------------------------------- /openbox/autostart: -------------------------------------------------------------------------------- 1 | compton & 2 | ~/.config/.fehbg & 3 | ~/.config/polybar/launch.sh & 4 | 5 | -------------------------------------------------------------------------------- /screenshots/atom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weigert/.dotfiles/HEAD/screenshots/atom.png -------------------------------------------------------------------------------- /screenshots/rofi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weigert/.dotfiles/HEAD/screenshots/rofi.png -------------------------------------------------------------------------------- /screenshots/firefox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weigert/.dotfiles/HEAD/screenshots/firefox.png -------------------------------------------------------------------------------- /rofi/cmd.csv: -------------------------------------------------------------------------------- 1 | Make Screenshot,$HOME/.config/rofi/sshot.sh 2 | Get Password,$HOME/.config/rofi/pass.sh 3 | -------------------------------------------------------------------------------- /rofi/scripts.rasi: -------------------------------------------------------------------------------- 1 | configuration { 2 | modi: "run,ssh,window,file:~/.config/rofi/scripts/file.sh"; 3 | } 4 | -------------------------------------------------------------------------------- /polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | # Launch bar 10 | polybar bar 11 | -------------------------------------------------------------------------------- /polybar/bluetooth.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ] 3 | then 4 | echo "%{F#66ffffff}" 5 | else 6 | if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ] 7 | then 8 | echo "" 9 | fi 10 | echo "%{F#2193ff}" 11 | fi 12 | -------------------------------------------------------------------------------- /rofi/theme.rasi: -------------------------------------------------------------------------------- 1 | * { 2 | background-color: #333333; 3 | border-color: #444444; 4 | text-color: #ffffff; 5 | spacing: 0; 6 | width: 800px; 7 | padding: 16px; 8 | lines: 5; 9 | show-icons: false; 10 | } 11 | 12 | inputbar { 13 | border: 0 0 1px 0; 14 | children: [prompt,entry]; 15 | } 16 | 17 | prompt { 18 | padding: 16px; 19 | border: 0 1px 0 0; 20 | } 21 | 22 | textbox { 23 | background-color: #2e343f; 24 | border: 0 0 1px 0; 25 | border-color: #282C33; 26 | padding: 8px 16px; 27 | } 28 | 29 | entry { 30 | padding: 16px; 31 | } 32 | 33 | listview { 34 | cycle: false; 35 | margin: 0 0 -1px 0; 36 | scrollbar: false; 37 | } 38 | 39 | element { 40 | border: 0 0 1px 0; 41 | padding: 16px; 42 | } 43 | 44 | element selected { 45 | background-color: #222222; 46 | } 47 | -------------------------------------------------------------------------------- /rofi/scripts/file.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | EDITOR=xdg-open 4 | 5 | CUR_DIR=$PWD 6 | 7 | PREV_LOC_FILE=~/.rofi_fb_prevloc 8 | 9 | # Read last location, otherwise we default to PWD. 10 | if [ -f "${PREV_LOC_FILE}" ] 11 | then 12 | CUR_DIR=$(cat "${PREV_LOC_FILE}") 13 | fi 14 | 15 | # Handle argument. 16 | if [ -n "$@" ] 17 | then 18 | CUR_DIR="${CUR_DIR}/$@" 19 | fi 20 | 21 | # If argument is no directory. 22 | if [ ! -d "${CUR_DIR}" ] 23 | then 24 | if [ -x "${CUR_DIR}" ] 25 | then 26 | coproc ( "${CUR_DIR}" & > /dev/null 2>&1 ) 27 | exec 1>&- 28 | exit; 29 | elif [ -f "${CUR_DIR}" ] 30 | then 31 | coproc ( ${EDITOR} "${CUR_DIR}" & > /dev/null 2>&1 ) 32 | exit; 33 | fi 34 | exit; 35 | fi 36 | 37 | # process current dir. 38 | if [ -n "${CUR_DIR}" ] 39 | then 40 | CUR_DIR=$(readlink -e "${CUR_DIR}") 41 | echo "${CUR_DIR}" > "${PREV_LOC_FILE}" 42 | pushd "${CUR_DIR}" >/dev/null 43 | fi 44 | 45 | echo ".." 46 | # Print formatted listing 47 | ls --group-directories-first --color=never --indicator-style=slash 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # .dotfiles 2 | custom linux setup 3 | 4 | I use Openbox on Ubuntu 18. 5 | 6 | The programs I use are listed below. Relevant configurations are typically stored in ~/.config (the files in this repo). 7 | 8 | ## Programs 9 | 10 | Visual: 11 | 12 | compton - compository 13 | feh - background setting 14 | rofi - program launcher 15 | polybar - display bar 16 | 17 | Workflow: 18 | 19 | nautilus - file manager 20 | gnome-terminal - terminal 21 | firefox - browser 22 | evince - pdf viewer 23 | code editor - atom 24 | screen recorder - simplescreenrecorder 25 | scan tool - simplescan 26 | video player - vlc 27 | music player - spotify + sp 28 | 29 | Utility (required for some polybar / openbox scripts): 30 | 31 | audio - alsamixer + pulseaudio 32 | bluetooth - blueman 33 | 34 | I am not entirely happy with nautilus, because it doesn't adhere to my theme fully. But it works well. I am looking for alternatives. 35 | 36 | Evince is nice because it is clean and *it just works*. 37 | 38 | Awesome spotify control shell script by wandernauta: [sp](https://gist.github.com/wandernauta/6800547) 39 | 40 | ## Screenshots 41 | 42 | ![atom](https://github.com/weigert/.dotfiles/blob/master/screenshots/atom.png) 43 | 44 | ![rofi](https://github.com/weigert/.dotfiles/blob/master/screenshots/rofi.png) 45 | 46 | ![firefox](https://github.com/weigert/.dotfiles/blob/master/screenshots/firefox.png) 47 | 48 | -------------------------------------------------------------------------------- /polybar/bluetooth_monitor.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | bluetooth_print() { 4 | bluetoothctl | while read -r; do 5 | if [ "$(systemctl is-active "bluetooth.service")" = "active" ]; then 6 | printf '#1' 7 | 8 | devices_paired=$(bluetoothctl paired-devices | grep Device | cut -d ' ' -f 2) 9 | counter=0 10 | 11 | echo "$devices_paired" | while read -r line; do 12 | device_info=$(bluetoothctl info "$line") 13 | 14 | if echo "$device_info" | grep -q "Connected: yes"; then 15 | device_alias=$(echo "$device_info" | grep "Alias" | cut -d ' ' -f 2-) 16 | 17 | if [ $counter -gt 0 ]; then 18 | printf ", %s" "$device_alias" 19 | else 20 | printf " %s" "$device_alias" 21 | fi 22 | 23 | counter=$((counter + 1)) 24 | fi 25 | 26 | printf '\n' 27 | done 28 | else 29 | echo "#2" 30 | fi 31 | done 32 | } 33 | 34 | bluetooth_toggle() { 35 | if bluetoothctl show | grep -q "Powered: no"; then 36 | bluetoothctl power on >> /dev/null 37 | sleep 1 38 | 39 | devices_paired=$(bluetoothctl paired-devices | grep Device | cut -d ' ' -f 2) 40 | echo "$devices_paired" | while read -r line; do 41 | bluetoothctl connect "$line" >> /dev/null 42 | done 43 | else 44 | devices_paired=$(bluetoothctl paired-devices | grep Device | cut -d ' ' -f 2) 45 | echo "$devices_paired" | while read -r line; do 46 | bluetoothctl disconnect "$line" >> /dev/null 47 | done 48 | 49 | bluetoothctl power off >> /dev/null 50 | fi 51 | } 52 | 53 | case "$1" in 54 | --toggle) 55 | bluetooth_toggle 56 | ;; 57 | *) 58 | bluetooth_print 59 | ;; 60 | esac 61 | -------------------------------------------------------------------------------- /usr/share/themes/Rice/openbox-3/themerc: -------------------------------------------------------------------------------- 1 | # Window geometry 2 | padding.width: 5 3 | padding.height: 10 4 | border.width: 10 5 | window.client.padding.width: 1 6 | window.client.padding.height: 0 7 | window.handle.width: 3 8 | 9 | #Menu geometry 10 | menu.border.width: 1 11 | menu.overlap.x: 0 12 | menu.overlap.y: 0 13 | 14 | # Border colors 15 | window.active.border.color: #ffffff 16 | window.inactive.border.color: #ffffff 17 | window.active.title.bg: Flat 18 | window.active.title.bg.color: #ffffff 19 | 20 | menu.border.color: #000000 21 | window.active.client.color: #ffffff 22 | window.inactive.client.color: #cccccc 23 | 24 | # Window title justification 25 | window.label.text.justify: Left 26 | 27 | # Active window 28 | window.active.label.bg: Parentrelative 29 | window.active.label.text.color: #000000 30 | 31 | window.active.handle.bg: Flat 32 | window.active.handle.bg.color: #ffffff 33 | 34 | window.active.grip.bg: Flat 35 | window.active.grip.bg.color: #ffffff 36 | 37 | # Inactive windows 38 | window.inactive.title.bg: Flat 39 | window.inactive.title.bg.color: #ffffff 40 | 41 | window.inactive.label.bg: Parentrelative 42 | window.inactive.label.text.color: #000000 43 | 44 | window.inactive.handle.bg: Flat 45 | window.inactive.handle.bg.color: #ffffff 46 | 47 | window.inactive.grip.bg: Flat 48 | window.inactive.grip.bg.color: #ffffff 49 | 50 | 51 | # Menus 52 | menu.title.bg: Raised Gradient Vertical 53 | menu.title.bg.color: #658fb5 54 | menu.title.bg.colorTo: #4d6982 55 | menu.title.text.color: #ffffff 56 | menu.title.text.justify: Left 57 | 58 | menu.separator.color: #444444 59 | menu.separator.width: 1 60 | menu.separator.padding.width: 6 61 | menu.separator.padding.height: 3 62 | 63 | menu.items.bg: Flat Solid 64 | menu.items.bg.color: #f8f5f2 65 | menu.items.text.color: #000000 66 | menu.items.disabled.text.color: #aaaaaa 67 | 68 | menu.items.active.bg: Flat Gradient Vertical 69 | menu.items.active.bg.color: #628cb2 70 | menu.items.active.bg.colorTo: #50708d 71 | menu.items.active.text.color: #ffffff 72 | menu.items.active.disabled.text.color: #aaaaaa 73 | -------------------------------------------------------------------------------- /compton.conf: -------------------------------------------------------------------------------- 1 | # Shadow 2 | shadow = true; 3 | no-dnd-shadow = true; 4 | no-dock-shadow = true; 5 | clear-shadow = true; 6 | shadow-radius = 0; 7 | shadow-offset-x = 10; 8 | shadow-offset-y = 10; 9 | shadow-opacity = 0.2; 10 | # shadow-red = 0.0; 11 | # shadow-green = 0.0; 12 | # shadow-blue = 0.0; 13 | shadow-exclude = [ 14 | "name = 'Notification'", 15 | "class_g = 'Conky'", 16 | "class_g ?= 'Notify-osd'", 17 | "class_g = 'Cairo-clock'", 18 | "_GTK_FRAME_EXTENTS@:c", 19 | "name = 'Test Splash'" 20 | ]; 21 | # shadow-exclude = "n:e:Notification"; 22 | # shadow-exclude-reg = "x10+0+0"; 23 | # xinerama-shadow-crop = true; 24 | 25 | # Opacity 26 | menu-opacity = 1; 27 | inactive-opacity = 1; 28 | # active-opacity = 0.8; 29 | frame-opacity = 1; 30 | inactive-opacity-override = false; 31 | alpha-step = 0.06; 32 | # inactive-dim = 0.2; 33 | # inactive-dim-fixed = true; 34 | # blur-background = true; 35 | # blur-background-frame = true; 36 | blur-kern = "3x3box" 37 | # blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" 38 | # blur-background-fixed = true; 39 | blur-background-exclude = [ 40 | "window_type = 'dock'", 41 | "window_type = 'desktop'", 42 | "_GTK_FRAME_EXTENTS@:c" 43 | ]; 44 | # opacity-rule = [ "80:class_g = 'URxvt'" ]; 45 | 46 | # Fading 47 | fading = true; 48 | # fade-delta = 30; 49 | fade-in-step = 0.03; 50 | fade-out-step = 0.03; 51 | # no-fading-openclose = true; 52 | # no-fading-destroyed-argb = true; 53 | fade-exclude = [ 54 | "window_type = 'dock'", 55 | "window_type = 'desktop'" 56 | ]; 57 | 58 | # Other 59 | backend = "xrender" 60 | mark-wmwin-focused = true; 61 | mark-ovredir-focused = true; 62 | # use-ewmh-active-win = true; 63 | detect-rounded-corners = true; 64 | detect-client-opacity = true; 65 | refresh-rate = 0; 66 | vsync = "none"; 67 | dbe = false; 68 | paint-on-overlay = true; 69 | # sw-opti = true; 70 | # unredir-if-possible = true; 71 | # unredir-if-possible-delay = 5000; 72 | # unredir-if-possible-exclude = [ ]; 73 | focus-exclude = [ "class_g = 'Cairo-clock'" ]; 74 | detect-transient = true; 75 | detect-client-leader = true; 76 | invert-color-include = [ ]; 77 | # resize-damage = 1; 78 | 79 | # GLX backend 80 | # glx-no-stencil = true; 81 | glx-copy-from-front = false; 82 | # glx-use-copysubbuffermesa = true; 83 | # glx-no-rebind-pixmap = true; 84 | glx-swap-method = "undefined"; 85 | # glx-use-gpushader4 = true; 86 | # xrender-sync = true; 87 | # xrender-sync-fence = true; 88 | 89 | # Window type settings 90 | wintypes: 91 | { 92 | tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; }; 93 | }; 94 | -------------------------------------------------------------------------------- /rofi/config.rasi: -------------------------------------------------------------------------------- 1 | configuration { 2 | /* location: 0;*/ 3 | /* fixed-num-lines: true;*/ 4 | /* terminal: "rofi-sensible-terminal";*/ 5 | /* ssh-client: "ssh";*/ 6 | /* ssh-command: "{terminal} -e {ssh-client} {host}";*/ 7 | /* run-command: "{cmd}";*/ 8 | /* run-list-command: "";*/ 9 | /* run-shell-command: "{terminal} -e {cmd}";*/ 10 | /* window-command: "xkill -id {window}";*/ 11 | /* window-match-fields: "all";*/ 12 | /* drun-icon-theme: ;*/ 13 | /* drun-match-fields: "name,generic,exec,categories";*/ 14 | /* disable-history: false;*/ 15 | /* sort: false;*/ 16 | /* levenshtein-sort: false;*/ 17 | /* case-sensitive: false;*/ 18 | /* cycle: true;*/ 19 | /* sidebar-mode: false;*/ 20 | /* eh: 1;*/ 21 | /* auto-select: false;*/ 22 | /* parse-hosts: false;*/ 23 | /* parse-known-hosts: true;*/ 24 | /* combi-modi: "window,run";*/ 25 | /* matching: "normal";*/ 26 | /* tokenize: true;*/ 27 | /* m: "-5";*/ 28 | /* line-margin: 2;*/ 29 | /* line-padding: 1;*/ 30 | /* filter: ;*/ 31 | /* separator-style: "dash";*/ 32 | /* hide-scrollbar: false;*/ 33 | /* fullscreen: false;*/ 34 | /* fake-transparency: false;*/ 35 | /* dpi: -1;*/ 36 | /* threads: 0;*/ 37 | /* scrollbar-width: 8;*/ 38 | /* scroll-method: 0;*/ 39 | /* fake-background: "screenshot";*/ 40 | /* window-format: "{w} {i}{c} {t}";*/ 41 | /* click-to-exit: true;*/ 42 | /* show-match: true;*/ 43 | /* theme: ;*/ 44 | /* color-normal: ;*/ 45 | /* color-urgent: ;*/ 46 | /* color-active: ;*/ 47 | /* color-window: ;*/ 48 | /* max-history-size: 25;*/ 49 | /* combi-hide-mode-prefix: false;*/ 50 | /* pid: "/run/user/1000/rofi.pid";*/ 51 | /* display-window: ;*/ 52 | /* display-windowcd: ;*/ 53 | /* display-run: ;*/ 54 | /* display-ssh: ;*/ 55 | /* display-drun: ;*/ 56 | /* display-combi: ;*/ 57 | /* display-keys: ;*/ 58 | /* kb-primary-paste: "Control+V,Shift+Insert";*/ 59 | /* kb-secondary-paste: "Control+v,Insert";*/ 60 | /* kb-clear-line: "Control+w";*/ 61 | /* kb-move-front: "Control+a";*/ 62 | /* kb-move-end: "Control+e";*/ 63 | /* kb-move-word-back: "Alt+b";*/ 64 | /* kb-move-word-forward: "Alt+f";*/ 65 | /* kb-move-char-back: "Left,Control+b";*/ 66 | /* kb-move-char-forward: "Right,Control+f";*/ 67 | /* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/ 68 | /* kb-remove-word-forward: "Control+Alt+d";*/ 69 | /* kb-remove-char-forward: "Delete,Control+d";*/ 70 | /* kb-remove-char-back: "BackSpace,Control+h";*/ 71 | /* kb-remove-to-eol: "Control+k";*/ 72 | /* kb-remove-to-sol: "Control+u";*/ 73 | /* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/ 74 | /* kb-accept-custom: "Control+Return";*/ 75 | /* kb-accept-alt: "Shift+Return";*/ 76 | /* kb-delete-entry: "Shift+Delete";*/ 77 | /* kb-mode-next: "Shift+Right,Control+Tab";*/ 78 | /* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/ 79 | /* kb-row-left: "Control+Page_Up";*/ 80 | /* kb-row-right: "Control+Page_Down";*/ 81 | /* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/ 82 | /* kb-row-down: "Down,Control+n";*/ 83 | /* kb-row-tab: "Tab";*/ 84 | /* kb-page-prev: "Page_Up";*/ 85 | /* kb-page-next: "Page_Down";*/ 86 | /* kb-row-first: "Home,KP_Home";*/ 87 | /* kb-row-last: "End,KP_End";*/ 88 | /* kb-row-select: "Control+space";*/ 89 | /* kb-screenshot: "Alt+S";*/ 90 | /* kb-toggle-case-sensitivity: "grave,dead_grave";*/ 91 | /* kb-toggle-sort: "Alt+grave";*/ 92 | /* kb-cancel: "Escape,Control+g,Control+bracketleft";*/ 93 | /* kb-custom-1: "Alt+1";*/ 94 | /* kb-custom-2: "Alt+2";*/ 95 | /* kb-custom-3: "Alt+3";*/ 96 | /* kb-custom-4: "Alt+4";*/ 97 | /* kb-custom-5: "Alt+5";*/ 98 | /* kb-custom-6: "Alt+6";*/ 99 | /* kb-custom-7: "Alt+7";*/ 100 | /* kb-custom-8: "Alt+8";*/ 101 | /* kb-custom-9: "Alt+9";*/ 102 | /* kb-custom-10: "Alt+0";*/ 103 | /* kb-custom-11: "Alt+exclam";*/ 104 | /* kb-custom-12: "Alt+at";*/ 105 | /* kb-custom-13: "Alt+numbersign";*/ 106 | /* kb-custom-14: "Alt+dollar";*/ 107 | /* kb-custom-15: "Alt+percent";*/ 108 | /* kb-custom-16: "Alt+dead_circumflex";*/ 109 | /* kb-custom-17: "Alt+ampersand";*/ 110 | /* kb-custom-18: "Alt+asterisk";*/ 111 | /* kb-custom-19: "Alt+parenleft";*/ 112 | /* kb-select-1: "Super+1";*/ 113 | /* kb-select-2: "Super+2";*/ 114 | /* kb-select-3: "Super+3";*/ 115 | /* kb-select-4: "Super+4";*/ 116 | /* kb-select-5: "Super+5";*/ 117 | /* kb-select-6: "Super+6";*/ 118 | /* kb-select-7: "Super+7";*/ 119 | /* kb-select-8: "Super+8";*/ 120 | /* kb-select-9: "Super+9";*/ 121 | /* kb-select-10: "Super+0";*/ 122 | /* ml-row-left: "ScrollLeft";*/ 123 | /* ml-row-right: "ScrollRight";*/ 124 | /* ml-row-up: "ScrollUp";*/ 125 | /* ml-row-down: "ScrollDown";*/ 126 | /* me-select-entry: "MousePrimary";*/ 127 | /* me-accept-entry: "MouseDPrimary";*/ 128 | /* me-accept-custom: "Control+MouseDPrimary";*/ 129 | theme: "theme.rasi"; 130 | } 131 | 132 | @import "scripts" 133 | -------------------------------------------------------------------------------- /polybar/config: -------------------------------------------------------------------------------- 1 | ;========================================================== 2 | ; 3 | ; 4 | ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ 5 | ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ 6 | ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ 7 | ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ 8 | ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ 9 | ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ 10 | ; 11 | ; 12 | ; To learn more about how to configure Polybar 13 | ; go to https://github.com/jaagr/polybar 14 | ; 15 | ; The README contains alot of information 16 | ; 17 | ;========================================================== 18 | 19 | [colors] 20 | background = #0222 21 | background-alt = #444 22 | foreground = #111111 23 | foreground-alt = #555 24 | primary = #ffb52a 25 | secondary = #e60053 26 | alert = #bd2c40 27 | 28 | [bar/bar] 29 | ;monitor = ${env:MONITOR:HDMI-1} 30 | width = 100% 31 | height = 4% 32 | ;offset-x = 0% 33 | bottom = true 34 | radius = 0 35 | fixed-center = false 36 | 37 | background = ${colors.background} 38 | foreground = ${colors.foreground} 39 | 40 | line-size = 0 41 | line-color = #f00 42 | 43 | border-size = 4 44 | border-color = #00000000 45 | 46 | padding-left = 0 47 | padding-right = 2 48 | 49 | module-margin-left = 1 50 | module-margin-right = 2 51 | 52 | font-0 = fixed:pixelsize=10;1 53 | font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 54 | font-2 = siji:pixelsize=10;1 55 | 56 | modules-right = onboard alsa xkeyboard date 57 | modules-left = battery dmenu 58 | 59 | tray-position = left 60 | tray-padding = 0 61 | tray-offset-x = 0 62 | tray-transparent = true 63 | tray-background = #000000 64 | 65 | ;wm-restack = bspwm 66 | ;wm-restack = i3 67 | 68 | ;override-redirect = true 69 | 70 | ;scroll-up = bspwm-desknext 71 | ;scroll-down = bspwm-deskprev 72 | 73 | ;scroll-up = i3wm-wsnext 74 | ;scroll-down = i3wm-wsprev 75 | 76 | cursor-click = pointer 77 | cursor-scroll = ns-resize 78 | 79 | [module/xkeyboard] 80 | type = internal/xkeyboard 81 | blacklist-0 = num lock 82 | 83 | format-prefix = " " 84 | format-prefix-foreground = ${colors.foreground-alt} 85 | format-prefix-underline = ${colors.secondary} 86 | 87 | label-layout = %layout% 88 | label-layout-underline = ${colors.secondary} 89 | 90 | label-indicator-padding = 2 91 | label-indicator-margin = 1 92 | label-indicator-background = ${colors.secondary} 93 | label-indicator-underline = ${colors.secondary} 94 | 95 | [module/wlan] 96 | type = internal/network 97 | interface = wlp1s0 98 | interval = 3.0 99 | 100 | format-connected = 101 | format-connected-underline = #9f78e1 102 | label-connected = %essid% 103 | 104 | format-disconnected = 105 | ;format-disconnected = 106 | ;format-disconnected-underline = ${self.format-connected-underline} 107 | ;label-disconnected = %ifname% disconnected 108 | ;label-disconnected-foreground = ${colors.foreground-alt} 109 | 110 | ramp-signal-0 =  111 | ramp-signal-1 =  112 | ramp-signal-2 =  113 | ramp-signal-3 =  114 | ramp-signal-4 =  115 | ramp-signal-foreground = ${colors.foreground-alt} 116 | 117 | [module/date] 118 | type = internal/date 119 | 120 | ; Seconds to sleep between updates 121 | interval = 1.0 122 | 123 | ; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string 124 | ; NOTE: if you want to use syntax tags here you need to use %%{...} 125 | date = %Y-%m-%d 126 | 127 | ; Optional time format 128 | time = %H:%M:%S 129 | 130 | ; if `date-alt` or `time-alt` is defined, clicking 131 | ; the module will toggle between formats 132 | date-alt = %A, %d %B %Y 133 | time-alt = %Y-%m-%d 134 | 135 | ; Available tags: 136 | ;