first commit
This commit is contained in:
commit
d5678de06b
25 changed files with 343 additions and 0 deletions
9
README.md
Normal file
9
README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||

|
||||
|
||||
## Font (SourceCodePro and FontAwesome)
|
||||
- [Nerd Fonts GitHub](https://github.com/ryanoasis/nerd-fonts)
|
||||
- ***Please search how to install FontAwesome on your system.***
|
||||
- On Debian/Ubuntu: `sudo apt install fonts-font-awesome`
|
||||
|
||||
## Wallpaper
|
||||
- [wallpapersden](https://wallpapersden.com/adventures-lonely-night-out-wallpaper/)
|
27
colors
Normal file
27
colors
Normal file
|
@ -0,0 +1,27 @@
|
|||
[colors]
|
||||
black = #000
|
||||
white = #FFF
|
||||
|
||||
success = #00c853
|
||||
warning = #ffea00
|
||||
danger = #ff1744
|
||||
|
||||
trans = #00000000
|
||||
semi-trans = #75000000
|
||||
|
||||
bg = #000
|
||||
fg = #FFF
|
||||
|
||||
prefix = #142D4C
|
||||
label = #385170
|
||||
|
||||
code = #CAE8D5
|
||||
filemanager = #ABD6BB
|
||||
firefox = #FFEC4A
|
||||
i3 = #29B488
|
||||
google-chrome = #4C8BF5
|
||||
launcher = #142D4C
|
||||
session = #DD5144
|
||||
steam = #00ADEE
|
||||
terminal = #63FC01
|
||||
window = #EAD673
|
55
config
Normal file
55
config
Normal file
|
@ -0,0 +1,55 @@
|
|||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
|
||||
include-file = /home/$USER/.config/polybar/colors
|
||||
|
||||
include-file = /home/$USER/.config/polybar/modules/battery
|
||||
include-file = /home/$USER/.config/polybar/modules/cpu
|
||||
include-file = /home/$USER/.config/polybar/modules/date
|
||||
include-file = /home/$USER/.config/polybar/modules/filemanager
|
||||
include-file = /home/$USER/.config/polybar/modules/i3
|
||||
include-file = /home/$USER/.config/polybar/modules/launcher
|
||||
include-file = /home/$USER/.config/polybar/modules/lockscreen
|
||||
include-file = /home/$USER/.config/polybar/modules/memory
|
||||
include-file = /home/$USER/.config/polybar/modules/pulseaudio
|
||||
include-file = /home/$USER/.config/polybar/modules/session
|
||||
include-file = /home/$USER/.config/polybar/modules/temperature
|
||||
include-file = /home/$USER/.config/polybar/modules/title
|
||||
include-file = /home/$USER/.config/polybar/modules/window
|
||||
include-file = /home/$USER/.config/polybar/modules/wlan
|
||||
include-file = /home/$USER/.config/polybar/modules/xbacklight
|
||||
|
||||
include-file = /home/$USER/.config/polybar/modules/code
|
||||
include-file = /home/$USER/.config/polybar/modules/firefox
|
||||
include-file = /home/$USER/.config/polybar/modules/google-chrome
|
||||
include-file = /home/$USER/.config/polybar/modules/steam
|
||||
include-file = /home/$USER/.config/polybar/modules/terminal
|
||||
|
||||
[bar/main]
|
||||
width = 100%
|
||||
height = 27
|
||||
bottom = true
|
||||
fixed-center = true
|
||||
|
||||
background = ${colors.semi-trans}
|
||||
foreground = ${colors.fg}
|
||||
|
||||
module-margin-right = 1
|
||||
|
||||
font-0 = "SauceCodePro Nerd Font:style=Medium:size=9;2"
|
||||
font-1 = "FontAwesome:size=10;2"
|
||||
font-2 = "FontAwesome:size=12;3"
|
||||
font-3 = "FontAwesome:size=14;3"
|
||||
|
||||
modules-left = launcher window filemanager google-chrome firefox steam code i3
|
||||
modules-right = memory cpu xbacklight pulseaudio wlan battery temperature date session
|
||||
|
||||
tray-position = right
|
||||
tray-maxsize = 16
|
||||
tray-background = ${colors.label}
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
10
launch.sh
Executable file
10
launch.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
polybar main -c /home/$USER/.config/polybar/config &
|
37
modules/battery
Normal file
37
modules/battery
Normal file
|
@ -0,0 +1,37 @@
|
|||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT1
|
||||
adapter = ACAD
|
||||
full-at = 98
|
||||
|
||||
format-charging = <ramp-capacity><label-charging>
|
||||
format-charging-background = ${colors.label}
|
||||
format-charging-foreground = ${colors.white}
|
||||
label-charging = " %percentage%% "
|
||||
label-charging-background = ${colors.label}
|
||||
label-charging-foreground = ${colors.white}
|
||||
|
||||
format-discharging = <ramp-capacity><label-discharging>
|
||||
format-discharging-background = ${colors.label}
|
||||
format-discharging-foreground = ${colors.white}
|
||||
label-discharging = " %percentage%% "
|
||||
label-discharging-background = ${colors.label}
|
||||
label-discharging-foreground = ${colors.white}
|
||||
|
||||
format-full-background = ${colors.label}
|
||||
format-full-foreground = ${colors.white}
|
||||
format-full-prefix = %{T2}%{T-}
|
||||
format-full-prefix-background = ${colors.prefix}
|
||||
format-full-prefix-foreground = ${colors.white}
|
||||
format-full-prefix-padding = 1
|
||||
label-full = " %percentage%% "
|
||||
|
||||
ramp-capacity-0 = %{T2}%{T-}
|
||||
ramp-capacity-1 = %{T2}%{T-}
|
||||
ramp-capacity-2 = %{T2}%{T-}
|
||||
ramp-capacity-3 = %{T2}%{T-}
|
||||
ramp-capacity-4 = %{T2}%{T-}
|
||||
;ramp-capacity-5 = %{T2}%{T-}
|
||||
ramp-capacity-background = ${colors.prefix}
|
||||
ramp-capacity-foreground = ${colors.white}
|
||||
ramp-capacity-padding = 1
|
6
modules/code
Normal file
6
modules/code
Normal file
|
@ -0,0 +1,6 @@
|
|||
[module/code]
|
||||
type = custom/script
|
||||
click-left = code
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.code}
|
||||
format-padding = 1
|
11
modules/cpu
Normal file
11
modules/cpu
Normal file
|
@ -0,0 +1,11 @@
|
|||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 1
|
||||
|
||||
format-background = ${colors.label}
|
||||
format-foreground = ${colors.white}
|
||||
format-prefix = %{T2}%{T-}
|
||||
format-prefix-background = ${colors.prefix}
|
||||
format-prefix-foreground = ${colors.white}
|
||||
format-prefix-padding = 1
|
||||
label = " %percentage:2%% "
|
15
modules/date
Normal file
15
modules/date
Normal file
|
@ -0,0 +1,15 @@
|
|||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
time = " %H:%M "
|
||||
time-alt = " %H:%M %a %d/%m "
|
||||
|
||||
format-background = ${colors.label}
|
||||
format-foreground = ${colors.white}
|
||||
format-prefix = %{T2}%{T-}
|
||||
format-prefix-background = ${colors.prefix}
|
||||
format-prefix-foreground = ${colors.white}
|
||||
format-prefix-padding = 1
|
||||
|
||||
label = %time%
|
6
modules/filemanager
Normal file
6
modules/filemanager
Normal file
|
@ -0,0 +1,6 @@
|
|||
[module/filemanager]
|
||||
type = custom/script
|
||||
click-left = xdg-open ~/
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.filemanager}
|
||||
format-padding = 1
|
8
modules/firefox
Normal file
8
modules/firefox
Normal file
|
@ -0,0 +1,8 @@
|
|||
[module/firefox]
|
||||
type = custom/script
|
||||
click-left = firefox --browser&
|
||||
click-middle = killall firefox&
|
||||
click-right = firefox --private-window&
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.firefox}
|
||||
format-padding = 1
|
8
modules/google-chrome
Normal file
8
modules/google-chrome
Normal file
|
@ -0,0 +1,8 @@
|
|||
[module/google-chrome]
|
||||
type = custom/script
|
||||
click-left = google-chrome --new-window&
|
||||
click-middle = killall chrome&
|
||||
click-right = google-chrome --incognito&
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.google-chrome}
|
||||
format-padding = 1
|
21
modules/i3
Normal file
21
modules/i3
Normal file
|
@ -0,0 +1,21 @@
|
|||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
|
||||
label-focused = %{T2}%{T-}
|
||||
label-focused-foreground = ${colors.i3}
|
||||
label-focused-padding = 1
|
||||
|
||||
label-unfocused = %{T2}%{T-}
|
||||
label-unfocused-foreground = ${colors.i3}
|
||||
label-unfocused-padding = ${self.label-focused-padding}
|
||||
|
||||
label-visible = %{T2}%{T-}
|
||||
label-visible-foreground = ${self.label-focused-foreground}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
|
||||
label-urgent = %{T2}%{T-}
|
||||
label-urgent-foreground = ${colors.danger}
|
||||
label-urgent-padding = ${self.label-focused-padding}
|
8
modules/launcher
Normal file
8
modules/launcher
Normal file
|
@ -0,0 +1,8 @@
|
|||
[module/launcher]
|
||||
type = custom/script
|
||||
click-left = rofi -show drun
|
||||
click-right = rofi -show run
|
||||
exec = echo %{T4}%{T-}
|
||||
format-background = ${colors.launcher}
|
||||
format-foreground = ${colors.white}
|
||||
format-padding = 1
|
6
modules/lockscreen
Normal file
6
modules/lockscreen
Normal file
|
@ -0,0 +1,6 @@
|
|||
[module/lockscreen]
|
||||
type = custom/script
|
||||
click-left = i3lock -n -c 03101C -e -f
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.white}
|
||||
format-padding = 1
|
11
modules/memory
Normal file
11
modules/memory
Normal file
|
@ -0,0 +1,11 @@
|
|||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 1
|
||||
|
||||
format-background = ${colors.label}
|
||||
format-foreground = ${colors.white}
|
||||
format-prefix = %{T2}%{T-}
|
||||
format-prefix-background = ${colors.prefix}
|
||||
format-prefix-foreground = ${colors.white}
|
||||
format-prefix-padding = 1
|
||||
label = " %percentage_used%% "
|
19
modules/pulseaudio
Normal file
19
modules/pulseaudio
Normal file
|
@ -0,0 +1,19 @@
|
|||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
use-ui-max = false
|
||||
|
||||
format-volume = <ramp-volume><label-volume>
|
||||
label-volume = " %percentage%% "
|
||||
label-volume-background = ${colors.label}
|
||||
label-volume-foreground = ${colors.white}
|
||||
label-muted = %{T2}%{T-} 0%
|
||||
label-muted-background = ${colors.prefix}
|
||||
label-muted-foreground = ${colors.white}
|
||||
label-muted-padding = 1
|
||||
|
||||
ramp-volume-0 = %{T2}%{T-}
|
||||
ramp-volume-1 = %{T2}%{T-}
|
||||
ramp-volume-2 = %{T2}%{T-}
|
||||
ramp-volume-background = ${colors.prefix}
|
||||
ramp-volume-foreground = ${colors.white}
|
||||
ramp-volume-padding = 1
|
7
modules/session
Normal file
7
modules/session
Normal file
|
@ -0,0 +1,7 @@
|
|||
[module/session]
|
||||
type = custom/script
|
||||
click-left = obsession-logout -p ""
|
||||
exec = echo %{T2}%{T-}
|
||||
format-background = ${colors.prefix}
|
||||
format-foreground = ${colors.session}
|
||||
format-padding = 1
|
7
modules/steam
Normal file
7
modules/steam
Normal file
|
@ -0,0 +1,7 @@
|
|||
[module/steam]
|
||||
type = custom/script
|
||||
click-left = steam&
|
||||
click-middle = killall steam&
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.steam}
|
||||
format-padding = 1
|
20
modules/temperature
Normal file
20
modules/temperature
Normal file
|
@ -0,0 +1,20 @@
|
|||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp><label>
|
||||
format-warn = <ramp><label-warn>
|
||||
label = " %temperature-c% "
|
||||
label-background = ${colors.label}
|
||||
label-foreground = ${colors.white}
|
||||
label-warn = " %temperature-c% "
|
||||
label-warn-background = ${colors.label}
|
||||
label-warn-foreground = ${colors.white}
|
||||
|
||||
ramp-0 = %{T2}%{T-}
|
||||
ramp-1 = %{T2}%{T-}
|
||||
ramp-2 = %{T2}%{T-}
|
||||
ramp-background = ${colors.prefix}
|
||||
ramp-foreground = ${colors.white}
|
||||
ramp-padding = 1
|
6
modules/terminal
Normal file
6
modules/terminal
Normal file
|
@ -0,0 +1,6 @@
|
|||
[module/terminal]
|
||||
type = custom/script
|
||||
click-left = x-terminal-emulator
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.terminal}
|
||||
format-padding = 1
|
8
modules/title
Normal file
8
modules/title
Normal file
|
@ -0,0 +1,8 @@
|
|||
[module/title]
|
||||
type = internal/xwindow
|
||||
|
||||
format = <label>
|
||||
format-foreground = ${colors.white}
|
||||
format-padding = 1
|
||||
label = %title%
|
||||
label-maxlen = 25
|
6
modules/window
Normal file
6
modules/window
Normal file
|
@ -0,0 +1,6 @@
|
|||
[module/window]
|
||||
type = custom/script
|
||||
click-left = rofi -show window
|
||||
exec = echo %{T3}%{T-}
|
||||
format-foreground = ${colors.window}
|
||||
format-padding = 1
|
22
modules/wlan
Normal file
22
modules/wlan
Normal file
|
@ -0,0 +1,22 @@
|
|||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 1.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
format-connected-background = ${colors.label}
|
||||
format-connected-foreground = ${colors.white}
|
||||
format-connected-prefix = %{T2}%{T-}
|
||||
format-connected-prefix-background = ${colors.prefix}
|
||||
format-connected-prefix-foreground = ${colors.white}
|
||||
format-connected-prefix-padding = 1
|
||||
label-connected = " %downspeed% %upspeed% "
|
||||
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-background = ${colors.label}
|
||||
format-disconnected-foreground = ${colors.white}
|
||||
format-disconnected-prefix = %{T2}%{T-}
|
||||
format-disconnected-prefix-background = ${colors.prefix}
|
||||
format-disconnected-prefix-foreground = ${colors.white}
|
||||
format-disconnected-prefix-padding = 1
|
||||
label-disconnected = " disconnected "
|
10
modules/xbacklight
Normal file
10
modules/xbacklight
Normal file
|
@ -0,0 +1,10 @@
|
|||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format-background = ${colors.label}
|
||||
format-foreground = ${colors.white}
|
||||
format-prefix = %{T2}%{T-}
|
||||
format-prefix-background = ${colors.prefix}
|
||||
format-prefix-foreground = ${colors.white}
|
||||
format-prefix-padding = 1
|
||||
label = " %percentage%% "
|
BIN
polybar-fox.png
Normal file
BIN
polybar-fox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 531 KiB |
Loading…
Reference in a new issue