[polybar] Added some PolyBar Config

This commit is contained in:
Eric Teunis de Boone 2020-11-20 15:23:42 +01:00
parent 375c954e2b
commit b62b55e417
11 changed files with 908 additions and 1 deletions

View File

@ -14,6 +14,7 @@
~/.config/geany/filedefs: geany/filedefs
~/.config/ncmpcpp/config: ncmpcpp/config
~/.config/ncmpcpp/bindings: ncmpcpp/bindings
~/.config/polybar: polybar
~/.local/share/applications: ncmpcpp/ncmpcpp.desktop
~/.mpd/mpd.conf: mpd/mpd.conf
~/.config/mpDris2/mpDris2.conf: mpd/mpDris2.conf

View File

@ -2,7 +2,7 @@
Description=mpDris2 - Music Player Daemon D-Bus bridge
Wants=mpd.service
After=mpd.service
Requires=dbus.service
Requires=dbus.service mpd.service
[Service]
Restart=on-failure

265
polybar/colors.ini Normal file
View File

@ -0,0 +1,265 @@
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;;
;; ______ __
;; / ____/___ / /___ __________
;; / / / __ \/ / __ \/ ___/ ___/
;; / /___/ /_/ / / /_/ / / (__ )
;; \____/\____/_/\____/_/ /____/
;;
;; Created By Aditya Shakya @adi1090x
;;
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[color]
;; Active Colors
bg = #263238
fg = #DFDFDF
ac = #00BCD4
;; Bars
bi = #00BCD4
be = #00BCD4
bf = #43a047
bn = #43a047
bm = #fdd835
bd = #e53935
;bg = #112526
;fg = #AE9793
;ac = #EE7313
;; Bars
;bi = #EE7313
;be = #EE7313
;bf = #43a047
;bn = #43a047
;bm = #fdd835
;bd = #e53935
trans = #00000000
white = #FFFFFF
black = #000000
;; Material Colors
red = #e53935
pink = #d81b60
purple = #8e24aa
deep-purple = #5e35b1
indigo = #3949ab
blue = #1e88e5
light-blue = #039be5
cyan = #00acc1
teal = #00897b
green = #43a047
light-green = #7cb342
lime = #c0ca33
yellow = #fdd835
amber = #ffb300
orange = #fb8c00
deep-orange = #f4511e
brown = #6d4c41
grey = #757575
blue-gray = #546e7a
;; Material Colors Shades
; Amber
amshade1 = #FF6F00
amshade2 = #FF8F00
amshade3 = #FFA000
amshade4 = #FFB300
amshade5 = #FFC107
amshade6 = #FFCA28
amshade7 = #FFD54F
amshade8 = #FFE082
; Blue
blshade1 = #0D47A1
blshade2 = #1565C0
blshade3 = #1976D2
blshade4 = #1E88E5
blshade5 = #2196F3
blshade6 = #42A5F5
blshade7 = #64B5F6
blshade8 = #90CAF9
; Blue-Grey
bgshade1 = #263238
bgshade2 = #37474F
bgshade3 = #455A64
bgshade4 = #546E7A
bgshade5 = #607D8B
bgshade6 = #78909C
bgshade7 = #90A4AE
bgshade8 = #B0BEC5
; Brown
brshade1 = #3E2723
brshade2 = #4E342E
brshade3 = #5D4037
brshade4 = #6D4C41
brshade5 = #795548
brshade6 = #8D6E63
brshade7 = #A1887F
brshade8 = #BCAAA4
; Cyan
cyshade1 = #006064
cyshade2 = #00838F
cyshade3 = #0097A7
cyshade4 = #00ACC1
cyshade5 = #00BCD4
cyshade6 = #26C6DA
cyshade7 = #4DD0E1
cyshade8 = #80DEEA
; Deep-Orange
doshade1 = #BF360C
doshade2 = #D84315
doshade3 = #E64A19
doshade4 = #F4511E
doshade5 = #FF5722
doshade6 = #FF7043
doshade7 = #FF8A65
doshade8 = #FFAB91
; Deep-Purple
dpshade1 = #311B92
dpshade2 = #4527A0
dpshade3 = #512DA8
dpshade4 = #5E35B1
dpshade5 = #673AB7
dpshade6 = #7E57C2
dpshade7 = #9575CD
dpshade8 = #B39DDB
; Green
grshade1 = #1B5E20
grshade2 = #2E7D32
grshade3 = #388E3C
grshade4 = #43A047
grshade5 = #4CAF50
grshade6 = #66BB6A
grshade7 = #81C784
grshade8 = #A5D6A7
; Grey
greshade1 = #212121
greshade2 = #424242
greshade3 = #616161
greshade4 = #757575
greshade5 = #9E9E9E
greshade6 = #BDBDBD
greshade7 = #D4D4D4
greshade8 = #EEEEEE
; Indigo
inshade1 = #1A237E
inshade2 = #283593
inshade3 = #303F9F
inshade4 = #3949AB
inshade5 = #3F51B5
inshade6 = #5C6BC0
inshade7 = #7986CB
inshade8 = #9FA8DA
; Light-Blue
lbshade1 = #01579B
lbshade2 = #0277BD
lbshade3 = #0288D1
lbshade4 = #039BE5
lbshade5 = #03A9F4
lbshade6 = #29B6F6
lbshade7 = #4FC3F7
lbshade8 = #81D4FA
; Light-Green
lgshade1 = #33691E
lgshade2 = #558B2F
lgshade3 = #689F38
lgshade4 = #7CB342
lgshade5 = #8BC34A
lgshade6 = #9CCC65
lgshade7 = #AED581
lgshade8 = #C5E1A5
; Lime
lishade1 = #827717
lishade2 = #9E9D24
lishade3 = #AFB42B
lishade4 = #C0CA33
lishade5 = #CDDC39
lishade6 = #D4E157
lishade7 = #DCE775
lishade8 = #E6EE9C
; Orange
orshade1 = #E65100
orshade2 = #EF6C00
orshade3 = #F57C00
orshade4 = #FB8C00
orshade5 = #FF9800
orshade6 = #FFA726
orshade7 = #FFB74D
orshade8 = #FFCC80
; Pink
pishade1 = #880E4F
pishade2 = #AD1457
pishade3 = #C2185B
pishade4 = #D81B60
pishade5 = #E91E63
pishade6 = #EC407A
pishade7 = #F06292
pishade8 = #F48FB1
; Purple
prshade1 = #4A148C
prshade2 = #6A1B9A
prshade3 = #7B1FA2
prshade4 = #8E24AA
prshade5 = #9C27B0
prshade6 = #AB47BC
prshade7 = #BA68C8
prshade8 = #CE93D8
; Red
reshade1 = #B71C1C
reshade2 = #C62828
reshade3 = #D32F2F
reshade4 = #E53935
reshade5 = #EE413D
reshade6 = #EF5350
reshade7 = #E57373
reshade8 = #EF9A9A
; Teal
teshade1 = #004D40
teshade2 = #00695C
teshade3 = #00796B
teshade4 = #00897B
teshade5 = #009688
teshade6 = #26A69A
teshade7 = #4DB6AC
teshade8 = #80CBC4
; Yellow
yeshade1 = #F57F17
yeshade2 = #F9A825
yeshade3 = #FBC02D
yeshade4 = #FDD835
yeshade5 = #FFEB3B
yeshade6 = #FFEE58
yeshade7 = #FFF176
yeshade8 = #FFF59D
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;; __________ ______
;; / ____/ __ \/ ____/
;; / __/ / / / / /_
;; / /___/ /_/ / __/
;; /_____/\____/_/
;;
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

105
polybar/config Normal file
View File

@ -0,0 +1,105 @@
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
prefix-foreground = #E4FF00
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
[global/wm]
margin-top = 0
margin-bottom = 0
include-file = ~/.config/polybar/colors.ini
include-file = ~/.config/polybar/modules.ini
[bar/main]
monitor =
offset-x = 0
offset-y = 0
radius = 0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
foreground-alt = ${colors.foreground-alt}
prefix-foreground = ${colors.prefix-foreground}
line-size = 3
line-color = #f00
border-size = 0
border-color = #00000000
padding = 2
module-margin-left = 1
module-margin-right = 2
font-0 = "Iosevka Nerd Font:size=10;2"
font-1 = "Iosevka Nerd Font:bold:size=10;2"
font-2 = unifont:fontformat=truetype:size=8:antialias=false;0
font-3 = siji:pixelsize=10;1
font-4 = fixed:pixelsize=10;1
;wm-restack = bspwm
;wm-restack = i3
override-redirect = true
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
[bar/primary]
inherit = bar/main
monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 27
modules-left = mpd
modules-center = filesystem cpu memory eth
modules-right = pa-microphone pulseaudio redshift date time
#tray-position = right
#tray-padding = 0
#tray-background = #0063ff
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false
; vim:ft=dosini

12
polybar/launch.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Terminate already running bar instances
killall -q polybar
# If all your bars have ipc enabled, you can also use
# polybar-msg cmd quit
# Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log
polybar primary >>/tmp/polybar1.log 2>&1 &
echo "Bars launched..."

425
polybar/modules.ini Normal file
View File

@ -0,0 +1,425 @@
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[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 = 10
mount-0 = /
mount-1 = /home
label-mounted = %{F#0a81f5} %mountpoint%%{F-}: %used%/%total%
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
; Separator in between workspaces
; label-separator = |
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
;pin-workspaces = true
label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-padding = 2
; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
; Separator in between workspaces
; label-separator = |
[module/mpd]
type = internal/mpd
interval = 1
host = /home/ericteunis/.config/mpd/socket
format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <icon-random> <label-time> <label-song> <icon-consume>
format-offline = <label-offline>
label-offline = " MPD is offline"
icon-play =
icon-pause =
icon-stop =
icon-prev =
icon-next =
icon-seekb =
icon-seekf =
icon-random =
icon-random-off =
icon-repeat =
icon-repeat-off =
icon-single =
icon-consume =
label-song-maxlen = 75
label-song-ellipsis = true
label-song-font = 2
label-time = %elapsed%/%total%
toggle-on-foreground = ${root.foreground}
toggle-off-foreground = ${root.foreground-alt}
[module/backlight]
;https://github.com/jaagr/polybar/wiki/Module:-backlight
type = internal/backlight
; Use the following command to list available cards:
; $ ls -1 /sys/class/backlight/
card = intel_backlight
; Available tags:
; <label> (default)
; <ramp>
; <bar>
format = <label>
format-foreground = ${colors.foreground}
format-background = ${colors.background}
; Available tokens:
; %percentage% (default)
label = %percentage%%
; Only applies if <ramp> is used
ramp-0 = 🌕
ramp-1 = 🌔
ramp-2 = 🌓
ramp-3 = 🌒
ramp-4 = 🌑
; Only applies if <bar> is used
bar-width = 10
bar-indicator = |
bar-fill =
bar-empty =
[module/backlight-acpi]
inherit = module/backlight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${root.prefix-foreground}
format = <label> <ramp-coreload>
label = %percentage:2%%
; Spacing between individual per-core ramps
ramp-coreload-spacing = 1
ramp-coreload-0 =
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 =
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 =
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 =
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 =
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 =
ramp-coreload-5-foreground = #fba922
ramp-coreload-6 =
ramp-coreload-6-foreground = #ff5555
ramp-coreload-7 =
ramp-coreload-7-foreground = #ff5555
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${root.prefix-foreground}
format = <label> <ramp-used>
label = %percentage_used%%
; Only applies if <ramp-used> is used
ramp-used-0 =
ramp-used-1 =
ramp-used-2 =
ramp-used-3 =
ramp-used-4 =
ramp-used-5 =
ramp-used-6 =
ramp-used-7 =
[module/wlan]
type = internal/network
interface = net1
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 =
ramp-signal-1 =
ramp-signal-2 =
ramp-signal-3 =
ramp-signal-4 =
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp0s25
interval = 3.0
format-connected-prefix = ""
format-font = 2
format-connected-prefix-foreground = #55aa55
label-connected = %upspeed:9%%downspeed:9%
format-disconnected-prefix = ""
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date = %A, %d %B %Y
format-prefix = " "
format-prefix-foreground = ${colors.prefix-foreground}
label = %date%
label-font = 2
[module/time]
type = internal/date
interval = 1
time = %H:%M:%S
format-prefix = " "
format-prefix-foreground = ${colors.prefix-foreground}
label = %time%
label-font = 2
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <ramp-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-muted =
label-muted-foreground = #f00
ramp-volume-0 =
ramp-volume-1 = 奔
ramp-volume-2 =
ramp-volume-foreground-0 = #55aa55
ramp-volume-foreground-1 = #f5a70a
ramp-volume-foreground-2 = #ff5555
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = -
bar-volume-fill-font = 2
bar-volume-empty = -
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${root.foreground-alt}
[module/alsa]
type = internal/alsa
format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill =
bar-volume-fill-font = 2
bar-volume-empty =
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a
format-discharging = <animation-discharging> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
animation-discharging-0 =
animation-discharging-1 =
animation-discharging-2 =
animation-discharging-foreground = ${colors.foreground-alt}
animation-discharging-framerate = 750
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary}
ramp-0 =
ramp-1 =
ramp-2 =
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open =
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[module/redshift]
type = custom/script
exec = ~/.config/polybar/scripts/info-redshift-temp.sh
interval = 5
[module/pa-microphone]
# source: https://github.com/polybar/polybar-scripts/tree/master/polybar-scripts/pulseaudio-microphone
type = custom/script
exec = ~/.config/polybar/scripts/pulseaudio-default-microphone.sh
tail = true
click-left = ~/.config/polybar/scripts/pulseaudio-default-microphone.sh --toggle &
scroll-up = ~/.config/polybar/scripts/pulseaudio-default-microphone.sh --increase &
scroll-down = ~/.config/polybar/scripts/pulseaudio-default-microphone.sh --decrease &

View File

@ -0,0 +1,4 @@
#!/bin/bash
AUTOFS_CONNECTED="歷"
AUTOFS_DISCONNECTED="轢"

View File

@ -0,0 +1,15 @@
#!/bin/sh
if [ "$(pgrep -x redshift)" ]; then
temp=$(redshift -p 2> /dev/null | grep temp | cut -d ":" -f 2 | tr -dc "[:digit:]")
if [ -z "$temp" ]; then
echo "%{F#666} ﯧ"
elif [ "$temp" -ge 5000 ]; then
echo "%{F#ffeeee} ﯦ"
elif [ "$temp" -ge 4000 ]; then
echo "%{F#ffaaaa} ﯦ"
else
echo "%{F#ff0000} ﯦ"
fi
fi

20
polybar/scripts/powermenu Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
uptime=$(uptime -p | sed -e 's/up //g')
# Options
shutdown = " Shutdown"
reboot = " Reboot"
lock = " Lock"
case $chosen in
$shutdown)
systemctl poweroff
;;
$reboot)
systemctl reboot
;;
$lock
;;
esac

View File

@ -0,0 +1,59 @@
#!/bin/sh
PACMD="pacmd"
status() {
MUTED=$($PACMD list-sources | awk '/\*/,EOF {print}' | awk '/muted/ {print $2; exit}')
if [ "$MUTED" = "yes" ]; then
echo "%{F#F00}"
else
echo ""
fi
}
listen() {
status
LANG=EN; pactl subscribe | while read -r event; do
if echo "$event" | grep -q "source" || echo "$event" | grep -q "server"; then
status
fi
done
}
toggle() {
MUTED=$($PACMD list-sources | awk '/\*/,EOF {print}' | awk '/muted/ {print $2; exit}')
DEFAULT_SOURCE=$($PACMD list-sources | awk '/\*/,EOF {print $3; exit}')
if [ "$MUTED" = "yes" ]; then
$PACMD set-source-mute "$DEFAULT_SOURCE" 0
else
$PACMD set-source-mute "$DEFAULT_SOURCE" 1
fi
}
increase() {
DEFAULT_SOURCE=$($PACMD list-sources | awk '/\*/,EOF {print $3; exit}')
$PACMD set-source-volume "$DEFAULT_SOURCE" +5%
}
decrease() {
DEFAULT_SOURCE=$($PACMD list-sources | awk '/\*/,EOF {print $3; exit}')
$PACMD set-source-volume "$DEFAULT_SOURCE" -5%
}
case "$1" in
--toggle)
toggle
;;
--increase)
increase
;;
--decrease)
decrease
;;
*)
listen
;;
esac

View File

@ -1,5 +1,6 @@
# Define XDG_DOTFILES_DIR for easy access
export XDG_DOTFILES_DIR="$HOME/.dotfiles"
export XDG_CONFIG_HOME="$HOME/.config"
# Source main profile
[ -r "$XDG_DOTFILES_DIR/profiles/main.sh" ] && source "$XDG_DOTFILES_DIR/profiles/main.sh"