organize into folders for each device.

This commit is contained in:
pim-wtf
2022-04-24 07:44:06 +02:00
parent a7dfd262af
commit cc4d0b5da3
32 changed files with 473 additions and 121 deletions

View File

@ -1,116 +0,0 @@
# ________
# | _____ \
# | | _/ / Pim Nelissen
# | | /__/ https://pim.wtf/
# | |
# \_|
# Neofetch configuration file.
print_info() {
info "" distro
info "" uptime
info "" packages
info "" shell
info "" wm
info "" cpu
info "" gpu
info "" memory
into "a" term_font
}
# Title
title_fqdn="off"
# Kernel
kernel_shorthand="on"
# Distro
distro_shorthand="off"
os_arch="off"
# Uptime
uptime_shorthand="tiny"
# Memory
memory_percent="off"
memory_unit="mib"
# Packages
package_managers="on"
# Shell
shell_path="off"
shell_version="on"
# CPU
speed_type="bios_limit"
speed_shorthand="on"
cpu_brand="on"
cpu_speed="on"
cpu_cores="off"
cpu_temp="off"
# GPU
gpu_brand="off"
gpu_type="dedicated"
# Resolution
refresh_rate="on"
# Disk
disk_show=('/')
disk_subtitle="mount"
disk_percent="on"
# Text Options
bold="on"
underline_enabled="on"
underline_char="-"
# Info Separator
separator=" "
# Color Blocks
block_range=(0 15)
color_blocks="off"
block_width=3
block_height=1
col_offset="auto"
# Progress Bars
bar_char_elapsed="-"
bar_char_total="="
bar_border="on"
bar_length=15
bar_color_elapsed="distro"
bar_color_total="distro"
cpu_display="off"
memory_display="off"
battery_display="off"
disk_display="off"
image_backend="pot"
image_source="auto"
ascii_distro="artix_small"
ascii_colors=(distro)
ascii_bold="on"
image_loop="off"
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
crop_mode="normal"
crop_offset="center"
image_size="auto"
gap=3
yoffset=0
xoffset=0
background_color=
stdout="off"

View File

@ -14,8 +14,8 @@ pgrep -x sxhkd > /dev/null || sxhkd &
# Launch polybar.
$HOME/.config/polybar/launch.sh
# Set the last wallpaper.
nitrogen --restore
# Set wallpaper.
feh --bg-fill $HOME/.wallpapers/sf.jpg
# Load BT manager for keyboard.
blueman-manager &

View File

@ -11,7 +11,7 @@
backend = "glx";
experimental-backends = true;
vsync = "true";
refresh-rate = 60;
refresh-rate = 75;
# Opacity and dimming.
active-opacity = 0.88;
@ -45,5 +45,5 @@ blur:
shadow = false;
# Corners
corner-radius = 0;
corner-radius = 12;
round-borders = 1;

233
void/polybar/.config_backup Normal file
View File

@ -0,0 +1,233 @@
;==========================================================
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;==========================================================
[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
[bar/example]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 32
;offset-x = 1%
;offset-y = 1%
radius = 1.0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 4
border-color = #00000000
padding-left = 0
padding-right = 1
module-margin-left = 1
module-margin-right = 1
font-0 = RobotoMono:pixelsize=10;1
font-1 = noto-fonts-emoji:pixelsize=10;1
modules-left = bspwm
modules-center = mpd
modules-right = backlight-acpi battery wlan date powermenu
tray-position = right
tray-padding = 1
;tray-background = #0063ff
wm-restack = bspwm
cursor-click = pointer
cursor-scroll = ns-resize
[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/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #fff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage:2%%
[module/wlan]
type = internal/network
interface = wlp8s0
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 = void0
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
;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 = 1
date = %Y-%m-%d
date-alt = %Y-%m-%d
time = %H:%M:%S
time-alt = %H:%M:%S
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time%
[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
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}
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini

200
void/polybar/config Normal file
View File

@ -0,0 +1,200 @@
# ________
# | _____ \
# | | _/ / Pim Nelissen
# | | /__/ https://pim.wtf/
# | |
# \_|
# Polybar configuation file.
[colors]
background = #dd191919
foreground = #ddffffff
background-alt = #444
foreground-alt = #555
primary = #ffb52a
alert = #bd2c40
[bar/top]
width = 1890
height = 35
radius = 12
background = ${colors.background}
foreground = ${colors.foreground}
border-color = #00000000
offset-y = 15
offset-x = 15
padding-left = 0
padding-right = 1
tray-padding = 1
spacing = 1
module-margin-left = 1
font-0 = RobotoMono:size=11;2
font-1 = MaterialIcons;3
modules-left = bspwm
modules-right = xbps-updates pulseaudio-control wlan wireless-network battery
modules-center = date
fixed-center = true
tray-position = right
[module/xbps-updates]
type = custom/script
exec = ~/.config/polybar/scripts/xbps-updates.sh
click-left = alacritty -e sudo xbps-install -Su
interval = 60
label-foreground = ${colors.foreground}
[module/pulseaudio-control]
type = custom/script
tail = true
label-foreground = ${colors.foreground}
exec = ~/.config/polybar/scripts/pulseaudio-control.bash --icons-volume ", , " --icon-muted "" --sink-nicknames-from "alsa.card_name" --sink-nickname "usb-Topping_D30-00.analog-stereo:  D30" --sink-nickname "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor: Speakers" listen
click-right = exec pavucontrol &
click-left = ~/.config/polybar/scripts/pulseaudio-control.bash togmute
click-middle = ~/.config/polybar/scripts/pulseaudio-control.bash --sink-blacklist "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor" next-sink
scroll-up = ~/.config/polybar/scripts/pulseaudio-control.bash --volume-max 130 up
scroll-down = ~/.config/polybar/scripts/pulseaudio-control.bash --volume-max 130 down
[module/brightnessctl]
type = custom/script
exec = ~/.config/polybar/scripts/brightnessctl.sh
scroll-up = exec brightnessctl set +5%
scroll-down = exec brightnessctl set 5%-
interval = 0.5
label = %output%
label-foreground = ${colors.foreground}
[module/xwindow]
type = internal/xwindow
[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
full-at = 98
click-left = ~/.config/polybar/scripts/bat_toggle.sh
format-charging = <label-charging>
format-discharging = <ramp-capacity><label-discharging>
format-full = ""
format-charging-foreground = #90C2E7
ramp-capacity-0 =
ramp-capacity-0-foreground = #DB5461
ramp-capacity-1 =
ramp-capacity-1-foreground = #E9C46A
ramp-capacity-2 =
ramp-capacity-2-foreground = #E9C46A
ramp-capacity-3 =
ramp-capacity-3-foreground = #169873
ramp-capacity-4 =
ramp-capacity-4-foreground = #169873
bar-capacity-width = 10
bar-capacity-format = %{+u}%{+o}%fill%%empty%%{-u}%{-o}
bar-capacity-fill = █
bar-capacity-fill-foreground = #ddffffff
bar-capacity-fill-font = 3
bar-capacity-empty = █
bar-capacity-empty-font = 3
bar-capacity-empty-foreground = #44ffffff
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
fuzzy-match = true
ws-icon-0 = I;
ws-icon-1 = II;
ws-icon-2 = III;
ws-icon-3 = IV;
ws-icon-4 = V;
ws-icon-5 = VI;
ws-icon-6 = VII;
ws-icon-7 = VIII;
format = <label-state>
label-monitor = %icon%
label-focused = %icon%
label-focused-background= ${colors.foreground-alt}
label-focused-padding = 1
label-occupied = %icon%
label-occupied-padding = 1
label-urgent = %icon%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %icon%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 1
[module/date]
type = internal/date
date = %H:%M
format = <label>
; full date: %Y-%m-%d %H:%M:%S
[module/wlan]
type = internal/network
interface = enp7s0
interval = 5.0
format-connected =  eth
[module/wireless-network]
type = internal/network
interface = wlp8s0
interval = 5.0
ping-interval = 10
label-connected = %essid%
format-connected = <ramp-signal><label-connected>
label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
animation-packetloss-0 = 
animation-packetloss-0-foreground = #ffa64c
animation-packetloss-1 = 
animation-packetloss-1-foreground = ${bar/top.foreground}
animation-packetloss-framerate = 500
[module/volume]
type = internal/volume
speaker-mixer = Speaker
headphone-mixer = Headphone
headphone-id = 9
format-volume = <ramp-volume> <label-volume>
label-muted =  muted
label-muted-foreground = #66
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-3 = 
; vim:ft=dosini

11
void/polybar/launch.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# Terminate already running bar instances
pkill polybar
# If all your bars have ipc enabled, you can also use
# polybar-msg cmd quit
# Launch Polybar, using default config location ~/.config/polybar/config
polybar top | tee -a /tmp/polybar.log & disown
echo "Polybar launched..."

View File

@ -0,0 +1,9 @@
#!/bin/sh
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
if [ -n "$updates" ] && [ "$updates" -gt 0 ]; then
echo "$updates"
else
echo ""
fi

View File

@ -0,0 +1,16 @@
#!/bin/bash
BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
if [ $BRIGHTNESS_NR -lt 20 ]; then
BRIGHTNESS_ICON=''
elif [ $BRIGHTNESS_NR -lt 50 ]; then
BRIGHTNESS_ICON=''
elif [ $BRIGHTNESS_NR -lt 80 ]; then
BRIGHTNESS_ICON=''
else
BRIGHTNESS_ICON=''
fi
echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"

Submodule zsh/zsh-syntax-highlighting deleted from c5ce001467