polybar modules etc.

This commit is contained in:
Harri Lahtinen 2018-12-27 01:23:12 +02:00
parent 2ef21ebe4b
commit c3524ca1ab
3 changed files with 34 additions and 41 deletions

View File

@ -67,7 +67,7 @@ client.background $black
###---Starting External Scripts---### ###---Starting External Scripts---###
#Start bluealsa #Start bluealsa
exec --no-startup-id sudo bluealsa & #exec --no-startup-id sudo bluealsa &
#Twmn #Twmn
exec --no-startup-id twmnd & exec --no-startup-id twmnd &
#Album art for mpd/mopidy #Album art for mpd/mopidy

View File

@ -25,7 +25,7 @@ monitor = ${env:MONITOR:eDP-1}
include-file = ~/.config/polybar/top-bar include-file = ~/.config/polybar/top-bar
modules-left = i3 gpmdp modules-left = i3 gpmdp
modules-center = term chrome editor fm music vpn modules-center = term chrome editor fm music vpn
modules-right = pkg pulseaudio battery backlight wlan networkmanager date clock powermenu modules-right = pkg pulseaudio-rofi-output battery backlight wlan networkmanager date clock powermenu
;tray-position = right ;tray-position = right
;tray-padding = 2 ;tray-padding = 2
@ -39,17 +39,19 @@ modules-left = hostname vpncheck
modules-center = cpu memory temperature modules-center = cpu memory temperature
modules-right = openweather modules-right = openweather
[module/pulseaudio-rofi-output]
type = custom/script
exec = ~/.config/Scripts/pulseaudio-rofi.sh --output_volume_listener
tail = true
click-right = ~/.config/Scripts/pulseaudio-rofi.sh --output
click-left = ~/.config/Scripts/pulseaudio-rofi.sh --mute
scroll-up = ~/.config/Scripts/pulseaudio-rofi.sh --volume_up
scroll-down = ~/.config/Scripts/pulseaudio-rofi.sh --volume_down
[module/pulseaudio] [module/pulseaudio]
type = internal/pulseaudio type = internal/pulseaudio
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
; If not, uses default sink
;sink = alsa_output.pci-0000_00_0e.0.analog-stereo
sink = bluez_sink.E8_07_BF_33_4D_F2.headset_head_unit sink = bluez_sink.E8_07_BF_33_4D_F2.headset_head_unit
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = true use-ui-max = true
; Interval for volume increase/decrease (in percent points)
; Default: 5
interval = 5 interval = 5
format-volume = <ramp-volume> <label-volume> format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%% label-volume = %percentage%%
@ -63,25 +65,30 @@ ramp-volume-foreground = ${colors.foreground-alt}
ramp-headphones-0 =  ramp-headphones-0 = 
ramp-headphones-1 =  ramp-headphones-1 = 
[module/nm-launcher] ;[module/backlight]
type = custom/script ;type = custom/script
exec = ~/.config/Scripts/nm-applet/applet.sh ;interval = 0.2
label = %output% ;exec = ~/.config/Scripts/backlight.sh
interval = 0.5 ;scroll-up = exec light -A 5
click-left = nm-connection-editor ;scroll-down = exec light -U 5
click-middle = ~/.config/Scripts/nm-applet/applet.sh --ssid ;format-prefix = " "
click-right = ~/.config/Scripts/nm-applet/applet.sh --vpn ;label = %output%
;label-foreground = ${colors.foreground}
;format-padding = 1
[module/backlight] [module/backlight]
type = custom/script type = internal/xbacklight
interval = 0.2 output = eDP-1
exec = ~/.config/Scripts/backlight.sh enable-scroll = true
scroll-up = exec light -A 5 format = <ramp> <label>
scroll-down = exec light -U 5 label = %percentage%%
format-prefix = " " ramp-0 = 
label = %output% ramp-1 = 
label-foreground = ${colors.foreground} ramp-2 = 
format-padding = 1 bar-width = 10
bar-indicator = |
bar-fill = ─
bar-empty = ─
[module/vpncheck] [module/vpncheck]
type = custom/script type = custom/script
@ -104,17 +111,14 @@ exec = echo "$(uname -nr)"
type = internal/temperature type = internal/temperature
thermal-zone = 0 thermal-zone = 0
warn-temperature = 65 warn-temperature = 65
format = <ramp> <label> format = <ramp> <label>
format-underline = ${xrdb:color1} format-underline = ${xrdb:color1}
;format-underline = #f50a4d ;format-underline = #f50a4d
format-warn = <ramp> <label-warn> format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline} format-warn-underline = ${self.format-underline}
label = %temperature-c% label = %temperature-c%
label-warn =  %temperature-c% label-warn =  %temperature-c%
label-warn-foreground = ${colors.alert} label-warn-foreground = ${colors.alert}
ramp-0 =  ramp-0 = 
ramp-1 =  ramp-1 = 
ramp-2 =  ramp-2 = 
@ -122,17 +126,6 @@ ramp-3 = 
ramp-4 =  ramp-4 = 
ramp-foreground = ${colors.foreground} ramp-foreground = ${colors.foreground}
;[module/github]
;type = internal/github
; Accessing an access token stored in file
;token = ${file:~/.token1}
; Whether empty notifications should be displayed or not
;empty-notifications = false
; Number of seconds in between requests
;interval = 10
;format-prefix = ""
[module/pkg] [module/pkg]
type = custom/script type = custom/script
exec = "~/.config/Scripts/arch-updates.sh -s" exec = "~/.config/Scripts/arch-updates.sh -s"

View File

@ -17,6 +17,6 @@ font-0 = TamzenForPowerline:pixelsize=12;1
;font-0 = TerminessTTF Nerd Font:pixelsize=10;1 ;font-0 = TerminessTTF Nerd Font:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = FontAwesome:size=10;1 font-2 = FontAwesome:size=10;1
font-3 = Material Icons:size=14;5 font-3 = Material Icons:size=10;2
scroll-up = i3wm-wsnext scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev scroll-down = i3wm-wsprev