add: icons and desktop names

This commit is contained in:
Tobias Reisinger 2020-02-14 01:47:50 +01:00
parent 1ae08204a4
commit be3233d8b8
2 changed files with 70 additions and 48 deletions

View file

@ -4,16 +4,16 @@ sxhkd &
host_name=$(hostname) host_name=$(hostname)
if [[ $host_name == "portalo" ]]; then if [[ $host_name == "portalo" ]]; then
bspc monitor HDMI-1 -d 01 02 03 04 05 06 07 bspc monitor HDMI-1 -d web terminal 3 4 5 6 game
bspc monitor DVI-D-1 -d 08 09 10 bspc monitor DVI-D-1 -d 8 voip messenger
bspc desktop ^7 --layout monocle bspc desktop ^7 --layout monocle
bspc desktop ^9 --layout monocle bspc desktop ^9 --layout monocle
bspc desktop ^10 --layout monocle bspc desktop ^10 --layout monocle
elif [[ $host_name == *"laptop"* ]]; then elif [[ $host_name == *"laptop"* ]]; then
bspc monitor eDP1 -d 01 02 03 04 05 06 07 08 09 10 bspc monitor eDP1 -d web terminal 3 4 5 6 7 8 9 10
else else
bspc monitor primary -d 01 02 03 04 05 06 07 08 09 10 bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
fi fi
bspc desktop ^1 --layout monocle bspc desktop ^1 --layout monocle
@ -27,12 +27,13 @@ bspc config gapless_monocle true
bspc config focus_follows_pointer true bspc config focus_follows_pointer true
bspc rule -a 'TeamSpeak 3' desktop='^9' bspc rule -a 'firefox' desktop='web'
bspc rule -a 'Evolution' desktop='^10' bspc rule -a 'TeamSpeak 3' desktop='voip'
bspc rule -a 'Riot' desktop='^10' bspc rule -a 'discord' desktop='voip'
bspc rule -a 'Signal' desktop='^10' bspc rule -a 'Evolution' desktop='messenger'
bspc rule -a 'Riot' desktop='messenger'
bspc rule -a 'Steam' desktop='^7' bspc rule -a 'Signal' desktop='messenger'
bspc rule -a 'Steam' desktop='game'
setxkbmap de setxkbmap de

View file

@ -2,7 +2,7 @@
background = #222 background = #222
background-alt = #444 background-alt = #444
foreground = #dfdfdf foreground = #dfdfdf
foreground-alt = #555 foreground-alt = #777
primary = #ffb52a primary = #ffb52a
secondary = #e60053 secondary = #e60053
alert = #bd2c40 alert = #bd2c40
@ -55,26 +55,26 @@
cursor-click = pointer cursor-click = pointer
cursor-scroll = normal cursor-scroll = normal
[bar/portalo-primary]
[bar/portalo-base]
inherit = bar/base inherit = bar/base
modules-left = bspwm i3
modules-center = mpd
modules-right = pulseaudio memory cpu eth temperature date powermenu
[bar/portalo-primary]
inherit = bar/portalo-base
monitor = HDMI-1 monitor = HDMI-1
modules-left = bspwm i3
modules-center = mpd
modules-right = pulseaudio memory cpu eth temperature date powermenu
[bar/portalo-secondary] [bar/portalo-secondary]
inherit = bar/base inherit = bar/portalo-base
monitor = DVI-D-1 monitor = DVI-D-1
modules-left = bspwm i3
modules-center = mpd
modules-right = pulseaudio memory cpu eth temperature date powermenu
tray-position = none tray-position = none
[bar/laptop-primary] [bar/laptop-primary]
inherit = bar/base inherit = bar/base
@ -84,6 +84,8 @@
modules-center = modules-center =
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth date powermenu modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth date powermenu
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow
label = %title:0:30:...% label = %title:0:30:...%
@ -117,22 +119,31 @@
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
label-focused = %index% pin-workspaces = false
label-focused = %icon% %index%
label-focused-background = ${colors.background-alt} label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary} label-focused-underline= ${colors.primary}
label-focused-padding = 2 label-focused-padding = 2
label-occupied = %index% label-occupied = %icon% %index%
label-occupied-padding = 2 label-occupied-padding = 2
label-urgent = %index%! label-urgent = %icon% %index%!
label-urgent-background = ${colors.alert} label-urgent-background = ${colors.alert}
label-urgent-padding = 2 label-urgent-padding = 2
label-empty = %index% label-empty = %icon% %index%
label-empty-foreground = ${colors.foreground-alt} label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2 label-empty-padding = 2
ws-icon-0 = web;
ws-icon-1 = terminal;
ws-icon-2 = voip;
ws-icon-3 = messenger;
ws-icon-4 = game;
ws-icon-default = 
; Separator in between workspaces ; Separator in between workspaces
; label-separator = | ; label-separator = |
@ -176,16 +187,23 @@
[module/mpd] [module/mpd]
type = internal/mpd type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> format-online = <label-song> <label-time> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev = icon-prev =
icon-stop = icon-stop =
icon-play = icon-play =
icon-pause = icon-pause =
icon-next = icon-next =
label-song-maxlen = 25 label-song-maxlen = 50
label-song-ellipsis = true label-song = %artist% - %title%
label-offline =  mpd is offline
label-time = [%elapsed% / %total%]
bar-progress-width = 10
bar-progress-indicator = |
bar-progress-fill = -
bar-progress-empty = -
[module/xbacklight] [module/xbacklight]
type = internal/xbacklight type = internal/xbacklight
@ -197,10 +215,10 @@
bar-indicator = | bar-indicator = |
bar-indicator-foreground = #fff bar-indicator-foreground = #fff
bar-indicator-font = 2 bar-indicator-font = 2
bar-fill = bar-fill = -
bar-fill-font = 2 bar-fill-font = 2
bar-fill-foreground = #9f78e1 bar-fill-foreground = #9f78e1
bar-empty = bar-empty = -
bar-empty-font = 2 bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt} bar-empty-foreground = ${colors.foreground-alt}
@ -212,7 +230,7 @@
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000 format-underline = #f90000
label = %percentage:2%% label = %percentage:2%%
@ -220,7 +238,7 @@
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc format-underline = #4bffdc
label = %percentage_used%% label = %percentage_used%%
@ -253,7 +271,7 @@
interval = 3.0 interval = 3.0
format-connected-underline = #55aa55 format-connected-underline = #55aa55
format-connected-prefix = " " format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt} format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip% label-connected = %local_ip%
@ -273,7 +291,7 @@
time = %H:%M time = %H:%M
time-alt = %H:%M:%S time-alt = %H:%M:%S
format-prefix = format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5 format-underline = #0a6cf5
@ -282,11 +300,14 @@
[module/pulseaudio] [module/pulseaudio]
type = internal/pulseaudio type = internal/pulseaudio
format-volume = <label-volume> <bar-volume> ; format-volume = <label-volume> <bar-volume>
label-volume = VOL %percentage%% format-volume = <label-volume>
format-volume-underline = #d8d804
label-volume =  %percentage%%
label-volume-foreground = ${root.foreground} label-volume-foreground = ${root.foreground}
label-muted = 🔇 muted format-muted-underline = #686823
label-muted =  muted
label-muted-foreground = #666 label-muted-foreground = #666
bar-volume-width = 10 bar-volume-width = 10
@ -300,9 +321,9 @@
bar-volume-gradient = false bar-volume-gradient = false
bar-volume-indicator = | bar-volume-indicator = |
bar-volume-indicator-font = 2 bar-volume-indicator-font = 2
bar-volume-fill = bar-volume-fill = -
bar-volume-fill-font = 2 bar-volume-fill-font = 2
bar-volume-empty = bar-volume-empty = -
bar-volume-empty-font = 2 bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt} bar-volume-empty-foreground = ${colors.foreground-alt}
@ -381,9 +402,9 @@
label-warn = %temperature-c% label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary} label-warn-foreground = ${colors.secondary}
ramp-0 = ramp-0 =
ramp-1 = ramp-1 =
ramp-2 = ramp-2 =
ramp-foreground = ${colors.foreground-alt} ramp-foreground = ${colors.foreground-alt}
[module/powermenu] [module/powermenu]