nice lil polybar

This commit is contained in:
Anish L 2022-04-20 23:05:38 +10:00
parent 05a39713f4
commit 4ad9095485
7 changed files with 197 additions and 152 deletions

View file

@ -27,5 +27,8 @@
"Sandeep1" = {
pskRaw = "035972401640bf4dc2d8651c0b9df515a69f6bc2bffa07cc936183128a6ccf0a";
};
"chadpad" = {
pskRaw = "2594b3880a60817950bd60b2770c9793fd4cb784ed183f685a52502a9df2c7b1";
};
};
}

View file

@ -5,6 +5,7 @@
users.users.anish = {
description = "Personal user for Anish";
hashedPassword = "MVHHpy9gbe3ow";
isNormalUser = true;
extraGroups = [ "wheel" "audio" ];
};

View file

@ -74,6 +74,7 @@ in
pulseSupport = true;
nlSupport = true;
})
papirus-icon-theme
];
@ -171,7 +172,7 @@ in
siji
font-awesome-ttf
proggyfonts
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "Iosevka" ]; })
];
home-manager.users.anish = {
@ -181,6 +182,7 @@ in
dracula-theme
capitaine-cursors
paper-icon-theme
papirus-icon-theme
libsForQt5.qtstyleplugin-kvantum
qt5ct
gtk-engine-murrine

View file

@ -1,34 +1,25 @@
[colors]
black = ${xrdb:color0}
bblack = ${xrdb:color8}
red = ${xrdb:color1}
bred = ${xrdb:color9}
green = ${xrdb:color2}
bgreen = ${xrdb:color10}
yellow = ${xrdb:color3}
byellow = ${xrdb:color11}
blue = ${xrdb:color4}
bblue = ${xrdb:color12}
magenta = ${xrdb:color5}
bmagenta = ${xrdb:color13}
cyan = ${xrdb:color6}
bcyan = ${xrdb:color14}
white = ${xrdb:color7}
bwhite = ${xrdb:color15}
bg = ${xrdb:background}
fg = ${colors.magenta}
yellow = #ffd580
orange = #fe8019
blue = #73d0ff
green = #bae67e
red = #ff3333
bg = #1f2430
fg = #bfbab0
icons = #bae67e
cyan = #95e6cb
text = ${xrdb:color2}
unfocus = ${xrdb:color1}
accent = #604c7e
sky = #73d0ff
mauve = #bae67e
alert = ${colors.yellow}
bg-alt = #1E2029
fg-alt = #373844
bg-dark = #181a23
alert = ${colors.yellow}
accent = #604c7e
[global/wm]
margin-top = 0
margin-bottom = 34
[bar/mybar]
; monitor = VGA-1
@ -41,7 +32,7 @@ bottom = false
fixed-center = true
width = 100%
height = 29
height = 34
offset-x =
offset-y =
@ -65,14 +56,17 @@ padding-left = 0
; Individual side values can be defined using:
; module-margin-{left,right}
module-margin = 0
margin-bottom = 34
font-0 = "Iosevka Term:pixelsize=13;4"
font-1 = "Iosevka Term:pixelsize=6;1"
font-2 = "Fira Code:pixelsize=13;2"
font-3 = "Siji:pixelsize=8;2"
; Add module mpd for artist - title info
modules-left = i3 sps mpd_i sps mpd sps pulseaudio
modules-left = bspwm sps volume
modules-center = title
modules-right = network sps memory sps cpu sps date
modules-right = wireless-network sps battery sps memory sps cpu sps date
; The separator will be inserted between the output of each module
separator =
@ -84,7 +78,7 @@ spacing = 0
; Opacity value between 0.0 and 1.0 used on fade in/out
dim-value = 1.0
wm-name = i3
wm-name = bspwm
tray-position = right
@ -107,7 +101,7 @@ tray-padding = 0
; Scale factor for tray clients
tray-scale = 1.0
wm-restack = i3
wm-restack = bspwm
dpi-x = 133
dpi-y = 133
@ -116,53 +110,45 @@ enable-ipc = false
; Fallback click handlers that will be called if
; there's no matching module handler found.
[module/i3]
type = internal/i3
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
strip-wsnumbers = true
index-sort = true
; Create click handler used to focus workspace
; Default: true
enable-click = true
; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = true
ws-icon-0 = 1;%{T1}%{T-}
ws-icon-1 = 2;%{T1}%{T-}
ws-icon-2 = 3;%{T1}%{T-}
ws-icon-3 = 4;%{T1}%{T-}
ws-icon-4 = 5;%{T1}%{T-}
ws-icon-default = 
; fuzzy-match = true
; Wrap around when reaching the first/last workspace
; Default: true
wrapping-scroll = false
; Set the scroll cycle direction
; Default: true
reverse-scroll = false
ws-icon-0 = 1;%{T1}%{T-}
ws-icon-1 = 2;%{T1}%{T-}
ws-icon-2 = 3;%{T1}%{T-}
ws-icon-3 = 4;%{T1}%{T-}
ws-icon-4 = 5;%{T1}%{T-}
ws-icon-5 = 6;%{T1}%{T-}
ws-icon-6 = 7;%{T1}%{T-}
ws-icon-7 = 8;%{T1}%{T-}
ws-icon-8 = 9;%{T1}%{T-}
ws-icon-9 = 0;%{T1}%{T-}
ws-icon-default = %{T1}%{T-}
fuzzy-match = true
label-unfocused = %icon%
label-unfocused-padding = 1
label-unfocused-foreground = ${colors.yellow}
format = <label-state> <label-mode>
label-padding = 1
label-foreground = ${colors.green}
label-focused = %icon%
label-focused-foreground = ${colors.bg}
label-focused-background = ${colors.yellow}
label-focused-underline = #f92672
label-focused-foreground = ${colors.bg}
# label-focused-underline = ${colors.magenta}
; label-focused-foreground = ${xrdb:color2}
label-focused-padding = 1
label-occupied = %icon%
label-occupied-foreground = ${colors.accent}
label-occupied-padding = 1
label-urgent = %icon%
label-urgent-foreground = ${colors.alert}
; label-urgent-background = ${colors.alert}
label-urgent-padding = 1
; label-urgent-font = 3
label-empty = %icon%
label-empty-foreground = ${colors.fg-alt}
label-empty-padding = 1
[module/date]
type = internal/date
@ -187,24 +173,25 @@ label-foreground = ${colors.green}
[module/wireless-network]
type = internal/network
interface = wlan0
interface = wlp3s0
label-connected = %essid%
format-connected = <ramp-signal>
label-connected-font = 2
format-connected = <ramp-signal><label-connected>
label-connected-foreground = #82b414
format-disconnected = <label-disconnected>
label-disconnected = Not connected
label-disconnected = "睊"
label-disconnected-foreground = #f92672
label-disconnected-background = #99000000
ramp-signal-foreground = #82b414
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-5 = 
ramp-signal-0 = " "
ramp-signal-1 = " "
ramp-signal-2 = " "
ramp-signal-3 = " "
ramp-signal-4 = " "
ramp-signal-5 = " "
[module/cpu]
type = internal/cpu
@ -293,7 +280,7 @@ content-padding = 0
[module/network]
type = internal/network
interface = wlan0
interface = wlp3s0
;enp0s29u1u2
interval = 1.0
label-connected = "%{T1}龍%{T-}%{T2} %downspeed% | %upspeed%%{T-}"
@ -323,53 +310,103 @@ label-maxlen = 65
label-empty =%{T2}Empty%{T-}
label-empty-foreground = #707880
[module/pulseaudio]
[module/volume]
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_12_00.3.analog-stereo
; sink = alsa_output.pci-0000_00_1b.0.analog-stereo
use-ui-max = false
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = true
; Interval for volume increase/decrease (in percent points)
; Default: 5
interval = 5
; Available tags:
; <label-volume> (default)
; <ramp-volume>
; <bar-volume>
format-volume = <label-volume>
format-volume = <ramp-volume><bar-volume>
; Available tags:
; <label-muted> (default)
; <ramp-volume>
; <bar-volume>
format-muted = <label-muted>
format-muted-prefix = "  "
format-muted-prefix-font = 2
format-muted-prefix-foreground = ${colors.mauve}
; Available tokens:
; %percentage% (default)
; %decibels% (unreleased)
label-volume = %{T2}%percentage%%%{T-}
label-volume = "%percentage%% "
label-muted = "Mute"
; Available tokens:
; %percentage% (default)
; %decibels% (unreleased)
label-muted = %{T1} %{T-}
label-muted-foreground = #666
label-volume-foreground = ${colors.mauve}
label-muted-foreground = ${colors.mauve}
; Only applies if <ramp-volume> is used
ramp-volume-0 = %{T1}🔈%{T-}
ramp-volume-1 = %{T1}🔉%{T-}
ramp-volume-2 = %{T1}🔊%{T-}
bar-volume-width = 8
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-indicator-foreground = ${colors.mauve}
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-fill-foreground = ${colors.mauve}
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.fg-alt}
; Right and Middle click (unreleased)
click-right = pavucontrol &
; click-middle =
ramp-volume-0 = "  "
ramp-volume-1 = "  "
ramp-volume-2 = "  "
ramp-volume-3 = "  "
ramp-volume-4 = "  "
ramp-volume-5 = "  "
ramp-volume-6 = "  "
ramp-volume-7 = "  "
ramp-volume-8 = "  "
ramp-volume-9 = "  "
ramp-volume-font = 1
ramp-volume-foreground = ${colors.mauve}
;[settings]
;pseudo-transparency = true
ramp-headphones-0 = 
ramp-headphones-1 = 
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[module/battery]
type = internal/battery
full-at = 99
adapter = ACAD
battery = BAT0
poll-interval = 2
time-format = %H:%M
format-charging = <animation-charging><label-charging>
format-charging-prefix =
format-discharging = <ramp-capacity><label-discharging>
format-full = <label-full>
format-full-prefix = " "
format-full-prefix-font = 1
format-full-prefix-foreground = ${colors.sky}
label-charging = "%percentage%% "
label-discharging = "%percentage%% "
label-full = "%percentage%% "
label-charging-foreground = ${colors.sky}
label-discharging-foreground = ${colors.sky}
label-charging-font = 2
label-discharging-font = 2
label-full-foreground = ${colors.sky}
label-full-font = 2
ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-3 = " "
ramp-capacity-4 = " "
ramp-capacity-font =3
ramp-capacity-foreground = ${colors.sky}
animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-3 = " "
animation-charging-4 = " "
animation-charging-font =3
animation-charging-foreground = ${colors.sky}
animation-charging-framerate = 750
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

View file

@ -62,8 +62,8 @@ padding-right = 2
module-margin-left = 0
module-margin-right = 0
font-0 = "Fira Code:pixelsize=9;2"
font-1 = "Wuncon Siji:pixelsize=12;2"
font-0 = "Fira Code:pixelsize=13;2"
font-1 = "Wuncon Siji:pixelsize=16;2"
font-2 = "Siji:pixelsize=10;2"
; modules-left = volume pad cpu memory pad pkg mail
@ -88,6 +88,7 @@ enable-click = true
# ws-icon-4 = 5;
# ws-icon-5 = 6;
ws-icon-default = 
fuzzy-match = true
format = <label-state> <label-mode>
label-padding = 1
@ -130,8 +131,8 @@ format-prefix-foreground = ${colors.accent}
[module/fs]
type = internal/fs
mount-0 = /
mount-1 = /mnt/projects ; for desktops
mount-2 = /home ; for laptop
# mount-1 = /mnt/projects ; for desktops
mount-2 = /home/anish
interval = 30
; Available tags:
@ -254,17 +255,18 @@ format-disconnected-foreground =
; label-disconnected = !
; label-disconnected-foreground = ${colors.red}
ramp-signal-0 =
ramp-signal-0 =
ramp-signal-0-foreground = ${colors.yellow}
ramp-signal-1 =
ramp-signal-1 =
ramp-signal-1-foreground = ${colors.yellow}
ramp-signal-2 =
ramp-signal-2 =
ramp-signal-2-foreground = ${colors.yellow}
ramp-signal-3 =
ramp-signal-3 =
ramp-signal-3-foreground = ${colors.accent}
ramp-signal-4 =
ramp-signal-4 =
ramp-signal-4-foreground = ${colors.fg}
[module/network-up]
type = internal/network
interface = ${env:LAN:eno1}

View file

@ -2,7 +2,7 @@
@import "config.rasi"
textbox-icon {
str: " ";
str: " ";
}
prompt {

View file

@ -3,5 +3,5 @@
pkill -u $UID -x polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar main >$XDG_DATA_HOME/polybar.log 2>&1 &
polybar mybar >$XDG_DATA_HOME/polybar.log 2>&1 &
echo 'Polybar launched...'