From 94edb261d8d74faa3aa1db175f6b15fc435736ab Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Thu, 20 Feb 2020 14:56:49 +0100 Subject: [PATCH 1/4] Polybar workstation --- profiles/laptop/.config/polybar/polybar.sh | 4 +- .../User/Preferences.sublime-settings | 6 +- profiles/workplace/.config/polybar/config | 475 +----------------- 3 files changed, 14 insertions(+), 471 deletions(-) diff --git a/profiles/laptop/.config/polybar/polybar.sh b/profiles/laptop/.config/polybar/polybar.sh index eb5b7a1..89d3a05 100755 --- a/profiles/laptop/.config/polybar/polybar.sh +++ b/profiles/laptop/.config/polybar/polybar.sh @@ -6,7 +6,7 @@ killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch bar1 and bar2 -polybar -c ~/.config/polybar/config laptop & -polybar -c ~/.config/polybar/config laptop_extern & +polybar -c ~/.config/polybar/config workstation & +polybar -c ~/.config/polybar/config workstation2 & echo "Bars launched..." diff --git a/profiles/shared/.config/sublime-text-3/Packages/User/Preferences.sublime-settings b/profiles/shared/.config/sublime-text-3/Packages/User/Preferences.sublime-settings index 1131a17..9703a13 100644 --- a/profiles/shared/.config/sublime-text-3/Packages/User/Preferences.sublime-settings +++ b/profiles/shared/.config/sublime-text-3/Packages/User/Preferences.sublime-settings @@ -4,10 +4,14 @@ "detect_indentation": false, "dictionary": "Packages/Language - English/en_US.dic", "font_face": "Hack for Powerline Regular", - "font_size": 12, + "font_size": 13, "hot_exit": false, "ignored_packages": [ + "A File Icon", + "Boxy Theme", + "DeleteBlankLines", + "Monokai - Spacegray", "RestructuredText", "Rust", "Six", diff --git a/profiles/workplace/.config/polybar/config b/profiles/workplace/.config/polybar/config index b79c4b9..75e5e11 100644 --- a/profiles/workplace/.config/polybar/config +++ b/profiles/workplace/.config/polybar/config @@ -1,481 +1,20 @@ -[colors] -background = #222 -background-alt = #444 -foreground = #dfdfdf -foreground-alt = #555 -primary = #ffb52a -secondary = #e60053 -alert = #bd2c40 -green = #689d6a -yellow = #fabc2f -red = #cc241d -[bar/base] -width = 900 ;100% -height = 35 -radius = 6.0 -fixed-center = false -background = ${colors.background} -foreground = ${colors.foreground} -line-size = 3 -line-color = #f00 -border-size = 0 -border-color = #00000000 -padding-left = 0 -padding-right = 2 -module-margin-left = 1 -module-margin-right = 3 - -wm-restack = i3 -;override-redirect = true -scroll-up = i3wm-wsnext -scroll-down = i3wm-wsprev - - -[bar/laptop] -monitor = ${env:MONITOR:eDP-1} -inherit = bar/base -tray-position = right -fixed-center = true -tray-padding = 2 -modules-left = i3 xwindow -modules-right = spotify previous playpause next mpd pulseaudio cpu memory battery1 date - -font-0 = "Noto Sans:size=14:style=Regular;1" -font-1 = unifont:fontformat=truetype:size=14:antialias=false;0 -font-2 = FontAwesome:size=14;0 - -[bar/laptop_station] -inherit = bar/laptop -monitor = ${env:MONITOR:HDMI-2} +include-file = ~/.config/polybar/config.d/colors +include-file = ~/.config/polybar/config.d/settings +include-file = ~/.config/polybar/config.d/modules +include-file = ~/.config/polybar/config.d/base_bar [bar/workstation] inherit = bar/base monitor = ${env:MONITOR:DP-4} modules-left = i3 xwindow modules-right = spotify previous playpause next mpd pulseaudio filesystem cpu gpu memory date xkeyboard -tray-position = false -tray-padding = 2 -font-0 = "Noto Sans:size=11:style=Regular;1" -font-1 = unifont:fontformat=truetype:size=11:antialias=false;0 -font-2 = FontAwesome:size=11;0 +font-0 = "Noto Sans:size=12:style=Regular;1" +font-1 = unifont:fontformat=truetype:size=12:antialias=false;0 +font-2 = FontAwesome:size=12;0 [bar/workstation2] inherit = bar/workstation monitor = ${env:MONITOR:DP-2} tray-position = right - - -[module/xwindow] -type = internal/xwindow -label = "> %title:0:75:...%" - - -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} - -label-layout = %layout% -label-layout-underline = ${colors.secondary} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} - -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = / -mount-1 = /data -mount-2 = /backup - -label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} - -[module/bspwm] -type = internal/bspwm - -label-focused = %index% -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} -label-focused-padding = 2 - -label-occupied = %index% -label-occupied-padding = 2 - -label-urgent = %index%! -label-urgent-background = ${colors.alert} -label-urgent-padding = 2 - -label-empty = %index% -label-empty-foreground = ${colors.foreground-alt} -label-empty-padding = 2 - -[module/i3] -type = internal/i3 -format = -index-sort = true -wrapping-scroll = false -strip-wsnumbers = true -pin-workspaces = true - -label-mode-padding = 2 -label-mode-foreground = #000 -label-mode-background = ${colors.primary} - -label-focused = %icon% -label-focused-background = ${colors.green} -label-focused-underline = ${colors.green} -label-focused-padding = ${module/bspwm.label-focused-padding} - -label-unfocused = %icon% -label-unfocused-padding = ${module/bspwm.label-occupied-padding} - -label-urgent = %icon% -label-urgent-background = ${colors.red} -label-urgent-underline = ${colors.red} -label-urgent-padding = ${module/bspwm.label-urgent-padding} - -label-visible = %icon% -label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} -label-visible-padding = ${self.label-focused-padding} -ws-icon-0 = 1;1 -ws-icon-1 = 2;2 -ws-icon-2 = 3;3 -ws-icon-3 = 4;4 -ws-icon-4 = 5;5 -ws-icon-5 = 6;6 -ws-icon-6 = 7; -ws-icon-7 = 8; -ws-icon-8 = 9; - -[module/mpd] -type = internal/mpd -format-online = - -icon-prev =  -icon-stop =  -icon-play =  -icon-pause =  -icon-next =  - -label-song-maxlen = 25 -label-song-ellipsis = true - -[module/xbacklight] -type = internal/xbacklight - -format =