mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-29 14:05:00 +01:00
Used some icons for bspwm
This commit is contained in:
parent
e924da6398
commit
dcfd17952e
|
@ -16,14 +16,15 @@ systemctl --user start spotifyd &
|
||||||
picom &
|
picom &
|
||||||
nm-applet &
|
nm-applet &
|
||||||
volumeicon &
|
volumeicon &
|
||||||
polybar main &
|
# polybar main &
|
||||||
|
$HOME/.config/polybar/launch.sh
|
||||||
|
|
||||||
# Ensure we have the correct cursor
|
# Ensure we have the correct cursor
|
||||||
xsetroot -cursor_name left_ptr
|
xsetroot -cursor_name left_ptr
|
||||||
|
|
||||||
pgrep -x sxhkd > /dev/null || sxhkd &
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||||
|
|
||||||
bspc monitor -d CHAT DEV WEB MISC
|
bspc monitor -d chat dev web misc music
|
||||||
|
|
||||||
bspc config border_width 1
|
bspc config border_width 1
|
||||||
bspc config window_gap 8
|
bspc config window_gap 8
|
||||||
|
|
|
@ -20,15 +20,16 @@
|
||||||
background = #282A2E
|
background = #282A2E
|
||||||
background-alt = #373B41
|
background-alt = #373B41
|
||||||
foreground = #C5C8C6
|
foreground = #C5C8C6
|
||||||
primary = #006699
|
primary = #008888
|
||||||
secondary = #8ABEB7
|
secondary = #8ABEB7
|
||||||
alert = #A54242
|
alert = #A54242
|
||||||
disabled = #707880
|
disabled = #707880
|
||||||
|
|
||||||
[bar/main]
|
[bar/main]
|
||||||
|
monitor = ${env:MONITOR:}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 24pt
|
height = 18pt
|
||||||
radius = 6
|
radius = 0
|
||||||
|
|
||||||
; dpi = 96
|
; dpi = 96
|
||||||
|
|
||||||
|
@ -48,9 +49,15 @@ module-margin = 1
|
||||||
separator = |
|
separator = |
|
||||||
separator-foreground = ${colors.disabled}
|
separator-foreground = ${colors.disabled}
|
||||||
|
|
||||||
font-0 = monospace;2
|
font-0 = "JetBrainsMono Nerd Font:style=Normal:size=12;3"
|
||||||
|
font-1 = "JetBrainsMono Nerd Font:style=Medium:size=9;3"
|
||||||
|
font-2 = "JetBrainsMono Nerd Font:style=Bold:size=9;3"
|
||||||
|
font-3 = "JetBrainsMono Nerd Font:style=Italic:size=9;3"
|
||||||
|
font-4 = "JetBrainsMono Nerd Font:style=Medium Italic:size=9;3"
|
||||||
|
font-5 = "JetBrainsMono Nerd Font:size=19;5"
|
||||||
|
font-6 = "mononoki Nerd Font"
|
||||||
|
|
||||||
modules-left = xworkspaces xwindow
|
modules-left = bspwm xwindow
|
||||||
modules-right = filesystem battery pulseaudio memory cpu wlan date
|
modules-right = filesystem battery pulseaudio memory cpu wlan date
|
||||||
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
|
@ -64,136 +71,7 @@ wm-restack = bspwm
|
||||||
|
|
||||||
; override-redirect = true
|
; override-redirect = true
|
||||||
|
|
||||||
[module/xworkspaces]
|
include-file = include-modules.ini
|
||||||
type = internal/xworkspaces
|
|
||||||
|
|
||||||
label-active = %name%
|
|
||||||
label-active-background = ${colors.background-alt}
|
|
||||||
label-active-underline= ${colors.primary}
|
|
||||||
label-active-padding = 1
|
|
||||||
|
|
||||||
label-occupied = %name%
|
|
||||||
label-occupied-padding = 1
|
|
||||||
|
|
||||||
label-urgent = %name%
|
|
||||||
label-urgent-background = ${colors.alert}
|
|
||||||
label-urgent-padding = 1
|
|
||||||
|
|
||||||
label-empty = %name%
|
|
||||||
label-empty-foreground = ${colors.disabled}
|
|
||||||
label-empty-padding = 1
|
|
||||||
|
|
||||||
[module/xwindow]
|
|
||||||
type = internal/xwindow
|
|
||||||
label = %title:0:60:...%
|
|
||||||
|
|
||||||
[module/filesystem]
|
|
||||||
type = internal/fs
|
|
||||||
interval = 25
|
|
||||||
|
|
||||||
mount-0 = /
|
|
||||||
|
|
||||||
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
|
|
||||||
|
|
||||||
label-unmounted = %mountpoint% not mounted
|
|
||||||
label-unmounted-foreground = ${colors.disabled}
|
|
||||||
|
|
||||||
[module/pulseaudio]
|
|
||||||
type = internal/pulseaudio
|
|
||||||
|
|
||||||
format-volume-prefix = "VOL "
|
|
||||||
format-volume-prefix-foreground = ${colors.primary}
|
|
||||||
format-volume = <label-volume>
|
|
||||||
|
|
||||||
label-volume = %percentage%%
|
|
||||||
|
|
||||||
label-muted = muted
|
|
||||||
label-muted-foreground = ${colors.disabled}
|
|
||||||
|
|
||||||
[module/xkeyboard]
|
|
||||||
type = internal/xkeyboard
|
|
||||||
blacklist-0 = num lock
|
|
||||||
|
|
||||||
label-layout = %layout%
|
|
||||||
label-layout-foreground = ${colors.primary}
|
|
||||||
|
|
||||||
label-indicator-padding = 2
|
|
||||||
label-indicator-margin = 1
|
|
||||||
label-indicator-foreground = ${colors.background}
|
|
||||||
label-indicator-background = ${colors.secondary}
|
|
||||||
|
|
||||||
[module/memory]
|
|
||||||
type = internal/memory
|
|
||||||
interval = 2
|
|
||||||
format-prefix = "RAM "
|
|
||||||
format-prefix-foreground = ${colors.primary}
|
|
||||||
label = %percentage_used:2%%
|
|
||||||
|
|
||||||
[module/cpu]
|
|
||||||
type = internal/cpu
|
|
||||||
interval = 2
|
|
||||||
format-prefix = "CPU "
|
|
||||||
format-prefix-foreground = ${colors.primary}
|
|
||||||
label = %percentage:2%%
|
|
||||||
|
|
||||||
[network-base]
|
|
||||||
type = internal/network
|
|
||||||
interval = 5
|
|
||||||
format-connected = <label-connected>
|
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
|
||||||
|
|
||||||
[module/wlan]
|
|
||||||
inherit = network-base
|
|
||||||
interface-type = wireless
|
|
||||||
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
|
|
||||||
|
|
||||||
[module/eth]
|
|
||||||
inherit = network-base
|
|
||||||
interface-type = wired
|
|
||||||
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
|
|
||||||
|
|
||||||
[module/date]
|
|
||||||
type = internal/date
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
date = %H:%M
|
|
||||||
date-alt = %Y-%m-%d %H:%M:%S
|
|
||||||
|
|
||||||
label = %date%
|
|
||||||
label-foreground = ${colors.primary}
|
|
||||||
|
|
||||||
[module/battery]
|
|
||||||
type = internal/battery
|
|
||||||
|
|
||||||
format-prefix = "BAT "
|
|
||||||
|
|
||||||
; This is useful in case the battery never reports 100% charge
|
|
||||||
; Default: 100
|
|
||||||
full-at = 99
|
|
||||||
|
|
||||||
; format-low once this charge percentage is reached
|
|
||||||
; Default: 10
|
|
||||||
; New in version 3.6.0
|
|
||||||
low-at = 5
|
|
||||||
|
|
||||||
; Use the following command to list batteries and adapters:
|
|
||||||
; $ ls -1 /sys/class/power_supply/
|
|
||||||
; battery = BAT0
|
|
||||||
; adapter = ADP1
|
|
||||||
battery = BAT1
|
|
||||||
adapter = ACAD
|
|
||||||
|
|
||||||
; If an inotify event haven't been reported in this many
|
|
||||||
; seconds, manually poll for new values.
|
|
||||||
;
|
|
||||||
; Needed as a fallback for systems that don't report events
|
|
||||||
; on sysfs/procfs.
|
|
||||||
;
|
|
||||||
; Disable polling by setting the interval to 0.
|
|
||||||
;
|
|
||||||
; Default: 5
|
|
||||||
poll-interval = 5
|
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
|
|
14
polybar/.config/polybar/include-modules.ini
Normal file
14
polybar/.config/polybar/include-modules.ini
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
include-file = modules/battery.ini
|
||||||
|
include-file = modules/cpu.ini
|
||||||
|
include-file = modules/date.ini
|
||||||
|
include-file = modules/eth.ini
|
||||||
|
include-file = modules/filesystem.ini
|
||||||
|
include-file = modules/memory.ini
|
||||||
|
include-file = modules/network_base.ini
|
||||||
|
include-file = modules/pulseaudio.ini
|
||||||
|
include-file = modules/wlan.ini
|
||||||
|
include-file = modules/workspaces.ini
|
||||||
|
include-file = modules/xkeyboard.ini
|
||||||
|
include-file = modules/xwindow.ini
|
||||||
|
include-file = modules/xworkspaces.ini
|
||||||
|
include-file = modules/bspwm.ini
|
10
polybar/.config/polybar/launch.sh
Executable file
10
polybar/.config/polybar/launch.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
pkill polybar
|
||||||
|
polybar --reload main &
|
||||||
|
# if type "xrandr"; then
|
||||||
|
# for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
|
# MONITOR=$m polybar --reload main &
|
||||||
|
# done
|
||||||
|
# else
|
||||||
|
# polybar --reload main &
|
||||||
|
# fi
|
30
polybar/.config/polybar/modules/battery.ini
Normal file
30
polybar/.config/polybar/modules/battery.ini
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
|
||||||
|
format-prefix = "BAT "
|
||||||
|
|
||||||
|
; This is useful in case the battery never reports 100% charge
|
||||||
|
; Default: 100
|
||||||
|
full-at = 99
|
||||||
|
|
||||||
|
; format-low once this charge percentage is reached
|
||||||
|
; Default: 10
|
||||||
|
; New in version 3.6.0
|
||||||
|
low-at = 5
|
||||||
|
|
||||||
|
; Use the following command to list batteries and adapters:
|
||||||
|
; $ ls -1 /sys/class/power_supply/
|
||||||
|
; battery = BAT0
|
||||||
|
; adapter = ADP1
|
||||||
|
battery = BAT1
|
||||||
|
adapter = ACAD
|
||||||
|
|
||||||
|
; If an inotify event haven't been reported in this many
|
||||||
|
; seconds, manually poll for new values.
|
||||||
|
;
|
||||||
|
; Needed as a fallback for systems that don't report events
|
||||||
|
; on sysfs/procfs.
|
||||||
|
;
|
||||||
|
; Disable polling by setting the interval to 0.
|
||||||
|
; Default: 5
|
||||||
|
poll-interval = 5
|
55
polybar/.config/polybar/modules/bspwm.ini
Normal file
55
polybar/.config/polybar/modules/bspwm.ini
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
[module/bspwm]
|
||||||
|
type = internal/bspwm
|
||||||
|
|
||||||
|
; Only show workspaces defined on the same output as the bar
|
||||||
|
; NOTE: The bspwm and XRandR monitor names must match, which they do by default.
|
||||||
|
; But if you rename your bspwm monitors with bspc -n this option will no longer
|
||||||
|
; behave correctly.
|
||||||
|
; Default: true
|
||||||
|
pin-workspaces = true
|
||||||
|
|
||||||
|
; Output mode flags after focused state label
|
||||||
|
; Default: false
|
||||||
|
inline-mode = false
|
||||||
|
|
||||||
|
; Create click handler used to focus workspace
|
||||||
|
; Default: true
|
||||||
|
enable-click = true
|
||||||
|
|
||||||
|
; Create scroll handlers used to cycle workspaces
|
||||||
|
; Default: true
|
||||||
|
enable-scroll = true
|
||||||
|
|
||||||
|
; Set the scroll cycle direction
|
||||||
|
; Default: true
|
||||||
|
reverse-scroll = false
|
||||||
|
|
||||||
|
; Use fuzzy (partial) matching on labels when assigning
|
||||||
|
; icons to workspaces
|
||||||
|
; Example: code;♚ will apply the icon to all workspaces
|
||||||
|
; containing 'code' in the label
|
||||||
|
; Default: false
|
||||||
|
fuzzy-match = true
|
||||||
|
|
||||||
|
; Only scroll through occupied workspaces
|
||||||
|
; Default: false
|
||||||
|
; New in version 3.6.0
|
||||||
|
occupied-scroll = true
|
||||||
|
|
||||||
|
label-focused = " %icon% "
|
||||||
|
label-focused-underline = #006699
|
||||||
|
|
||||||
|
label-occupied = " %icon% "
|
||||||
|
label-occupied-foreground = #0088aa
|
||||||
|
|
||||||
|
label-urgent = " %icon% "
|
||||||
|
label-urgent-underline = #9b0a20
|
||||||
|
|
||||||
|
label-empty = " %icon% "
|
||||||
|
label-empty-foreground = #555555
|
||||||
|
|
||||||
|
ws-icon-0 = chat;
|
||||||
|
ws-icon-1 = dev;
|
||||||
|
ws-icon-2 = web;
|
||||||
|
ws-icon-3 = misc;
|
||||||
|
ws-icon-4 = music;
|
7
polybar/.config/polybar/modules/cpu.ini
Normal file
7
polybar/.config/polybar/modules/cpu.ini
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.primary}
|
||||||
|
label = %percentage:2%%
|
||||||
|
|
9
polybar/.config/polybar/modules/date.ini
Normal file
9
polybar/.config/polybar/modules/date.ini
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
interval = 1
|
||||||
|
|
||||||
|
date = %H:%M
|
||||||
|
date-alt = %Y-%m-%d %H:%M:%S
|
||||||
|
|
||||||
|
label = %date%
|
||||||
|
label-foreground = ${colors.primary}
|
5
polybar/.config/polybar/modules/eth.ini
Normal file
5
polybar/.config/polybar/modules/eth.ini
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[module/eth]
|
||||||
|
inherit = network-base
|
||||||
|
interface-type = wired
|
||||||
|
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
|
||||||
|
|
11
polybar/.config/polybar/modules/filesystem.ini
Normal file
11
polybar/.config/polybar/modules/filesystem.ini
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[module/filesystem]
|
||||||
|
type = internal/fs
|
||||||
|
interval = 25
|
||||||
|
|
||||||
|
mount-0 = /
|
||||||
|
|
||||||
|
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
|
||||||
|
|
||||||
|
label-unmounted = %mountpoint% not mounted
|
||||||
|
label-unmounted-foreground = ${colors.disabled}
|
||||||
|
|
7
polybar/.config/polybar/modules/memory.ini
Normal file
7
polybar/.config/polybar/modules/memory.ini
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.primary}
|
||||||
|
label = %percentage_used:2%%
|
||||||
|
|
7
polybar/.config/polybar/modules/network_base.ini
Normal file
7
polybar/.config/polybar/modules/network_base.ini
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[network-base]
|
||||||
|
type = internal/network
|
||||||
|
interval = 5
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
||||||
|
|
12
polybar/.config/polybar/modules/pulseaudio.ini
Normal file
12
polybar/.config/polybar/modules/pulseaudio.ini
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[module/pulseaudio]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
|
||||||
|
format-volume-prefix = " "
|
||||||
|
format-volume-prefix-foreground = ${colors.primary}
|
||||||
|
format-volume = <label-volume>
|
||||||
|
|
||||||
|
label-volume = %percentage%%
|
||||||
|
|
||||||
|
label-muted = muted
|
||||||
|
label-muted-foreground = ${colors.disabled}
|
||||||
|
|
5
polybar/.config/polybar/modules/wlan.ini
Normal file
5
polybar/.config/polybar/modules/wlan.ini
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[module/wlan]
|
||||||
|
inherit = network-base
|
||||||
|
interface-type = wireless
|
||||||
|
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
|
||||||
|
|
1
polybar/.config/polybar/modules/workspaces.ini
Normal file
1
polybar/.config/polybar/modules/workspaces.ini
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
12
polybar/.config/polybar/modules/xkeyboard.ini
Normal file
12
polybar/.config/polybar/modules/xkeyboard.ini
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[module/xkeyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
blacklist-0 = num lock
|
||||||
|
|
||||||
|
label-layout = %layout%
|
||||||
|
label-layout-foreground = ${colors.primary}
|
||||||
|
|
||||||
|
label-indicator-padding = 2
|
||||||
|
label-indicator-margin = 1
|
||||||
|
label-indicator-foreground = ${colors.background}
|
||||||
|
label-indicator-background = ${colors.secondary}
|
||||||
|
|
4
polybar/.config/polybar/modules/xwindow.ini
Normal file
4
polybar/.config/polybar/modules/xwindow.ini
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[module/xwindow]
|
||||||
|
type = internal/xwindow
|
||||||
|
label = %title:0:60:...%
|
||||||
|
|
19
polybar/.config/polybar/modules/xworkspaces.ini
Normal file
19
polybar/.config/polybar/modules/xworkspaces.ini
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
[module/xworkspaces]
|
||||||
|
type = internal/xworkspaces
|
||||||
|
|
||||||
|
label-active = %name%
|
||||||
|
label-active-background = ${colors.background-alt}
|
||||||
|
label-active-underline= ${colors.primary}
|
||||||
|
label-active-padding = 1
|
||||||
|
|
||||||
|
label-occupied = %name%
|
||||||
|
label-occupied-padding = 1
|
||||||
|
|
||||||
|
label-urgent = %name%
|
||||||
|
label-urgent-background = ${colors.alert}
|
||||||
|
label-urgent-padding = 1
|
||||||
|
|
||||||
|
label-empty = %name%
|
||||||
|
label-empty-foreground = ${colors.disabled}
|
||||||
|
label-empty-padding = 1
|
||||||
|
|
2
setup
2
setup
|
@ -18,7 +18,7 @@ else
|
||||||
sudo pacman -Syyu
|
sudo pacman -Syyu
|
||||||
echo "Installing tools/utils"
|
echo "Installing tools/utils"
|
||||||
sudo pacman -S ripgrep fd neovim make stow tmux
|
sudo pacman -S ripgrep fd neovim make stow tmux
|
||||||
sudo pacman -S ripgrep fd neovim make stow tmux dmenu arandr autorandr volumeicon picom nitrogen network-manager-applet lxsession thunar lxappearance-gtk3 power-profiles-daemon thermald acpi arc-icon-theme playerctl bspwm sxhkd polybar xorg-xsetroot
|
sudo pacman -S ripgrep fd neovim make stow tmux dmenu arandr autorandr volumeicon picom nitrogen network-manager-applet lxsession thunar lxappearance-gtk3 power-profiles-daemon thermald acpi arc-icon-theme playerctl bspwm sxhkd polybar xorg-xsetroot ttf-jetbrains-mono-nerd
|
||||||
sudo systemctl enable --now power-profiles-daemon
|
sudo systemctl enable --now power-profiles-daemon
|
||||||
sudo thermald --systemd
|
sudo thermald --systemd
|
||||||
sudo power-profiles-daemon set performance
|
sudo power-profiles-daemon set performance
|
||||||
|
|
Loading…
Reference in a new issue