Fix mistake with file links
This commit is contained in:
parent
97df090aad
commit
f9eb221ee0
|
@ -1 +0,0 @@
|
|||
/home/katie/.config/bspwm/
|
20
.config/bspwm/bspwmrc
Executable file
20
.config/bspwm/bspwmrc
Executable file
|
@ -0,0 +1,20 @@
|
|||
#! /bin/sh
|
||||
|
||||
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||
|
||||
$HOME/.config/polybar/launch.sh
|
||||
|
||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
||||
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 12
|
||||
|
||||
bspc config split_ratio 0.52
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
|
||||
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||
bspc rule -a Chromium desktop='^2'
|
||||
bspc rule -a mplayer2 state=floating
|
||||
bspc rule -a Kupfer.py focus=on
|
||||
bspc rule -a Screenkey manage=off
|
85
.config/bspwm/sxmo-bspwm-xinit.sh
Executable file
85
.config/bspwm/sxmo-bspwm-xinit.sh
Executable file
|
@ -0,0 +1,85 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Copyright 2022 Sxmo Contributors
|
||||
|
||||
envvars() {
|
||||
export SXMO_WM=dwm
|
||||
# shellcheck disable=SC2086
|
||||
command -v $TERMCMD "" >/dev/null || export TERMCMD="st"
|
||||
command -v "$KEYBOARD" >/dev/null || defaultkeyboard
|
||||
[ -z "$MOZ_USE_XINPUT2" ] && export MOZ_USE_XINPUT2=1
|
||||
}
|
||||
|
||||
defaults() {
|
||||
xmodmap /usr/share/sxmo/appcfg/xmodmap_caps_esc
|
||||
xsetroot -mod 29 29 -fg '#0b3a4c' -bg '#082430'
|
||||
xset s off -dpms
|
||||
for xr in /usr/share/sxmo/appcfg/*.xr; do
|
||||
xrdb -merge "$xr"
|
||||
done
|
||||
[ -e "$HOME"/.Xresources ] && xrdb -merge "$HOME"/.Xresources
|
||||
SCREENWIDTH=$(xrandr | grep "Screen 0" | cut -d" " -f 8)
|
||||
SCREENHEIGHT=$(xrandr | grep "Screen 0" | cut -d" " -f 10 | tr -d ",")
|
||||
if [ "$SCREENWIDTH" -lt 1024 ] || [ "$SCREENHEIGHT" -lt 768 ]; then
|
||||
gsettings set org.gtk.Settings.FileChooser window-size "($SCREENWIDTH,$((SCREENHEIGHT / 2)))"
|
||||
fi
|
||||
}
|
||||
|
||||
defaultkeyboard() {
|
||||
if command -v svkbd-mobile-intl >/dev/null; then
|
||||
export KEYBOARD=svkbd-mobile-intl
|
||||
elif command -v svkbd-mobile-plain >/dev/null; then
|
||||
export KEYBOARD=svkbd-mobile-plain
|
||||
else
|
||||
#legacy
|
||||
export KEYBOARD=svkbd-sxmo
|
||||
fi
|
||||
}
|
||||
|
||||
with_dbus() {
|
||||
echo "$DBUS_SESSION_BUS_ADDRESS" > "$XDG_RUNTIME_DIR"/dbus.bus
|
||||
# shellcheck source=configs/appcfg/xinit_template
|
||||
. "$XDG_CONFIG_HOME"/sxmo/xinit
|
||||
exec /usr/bin/bspwm-session.sh
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
||||
dbus-run-session -- "$0" "with_dbus"
|
||||
else
|
||||
# with_dbus calls exec because dbus-run-session starts it in a
|
||||
# new shell, but we need to keep this shell; start in a subshell
|
||||
( with_dbus )
|
||||
fi
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
sxmo_daemons.sh stop all
|
||||
pkill svkbd
|
||||
pkill dmenu
|
||||
}
|
||||
|
||||
init() {
|
||||
# shellcheck source=scripts/core/sxmo_common.sh
|
||||
. /etc/profile.d/sxmo_init.sh
|
||||
|
||||
_sxmo_load_environments
|
||||
_sxmo_prepare_dirs
|
||||
envvars
|
||||
sxmo_migrate.sh sync
|
||||
|
||||
defaults
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
. "$XDG_CONFIG_HOME/sxmo/profile"
|
||||
|
||||
start
|
||||
cleanup
|
||||
sxmo_hook_stop.sh
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
init
|
||||
else
|
||||
"$1"
|
||||
fi
|
6
.config/copyconfigs.sh
Executable file
6
.config/copyconfigs.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
# This file copies all the folders from ~/.config that I want to share.
|
||||
|
||||
cp -r ~/.config/bspwm/ .
|
||||
cp -r ~/.config/sxhkd/ .
|
||||
cp -r ~/.config/polybar/ .
|
|
@ -1 +0,0 @@
|
|||
/home/katie/.config/polybar/
|
4
.config/polybar/batt/ip5xxx_battery.sh
Executable file
4
.config/polybar/batt/ip5xxx_battery.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
PERCENTAGESTR=$(upower -i /org/freedesktop/UPower/devices/battery_ip5xxx_battery | grep percentage)
|
||||
echo "${PERCENTAGESTR//[!0-9]/}" > /home/katie/.config/polybar/batt/ip5xxx-battery/
|
11
.config/polybar/batt/ip5xxx_charge_now_compat.service
Normal file
11
.config/polybar/batt/ip5xxx_charge_now_compat.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=ip5xxx Battery charge_now Compatability Service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
ExecStart=ip5xxx_battery.sh
|
||||
Restart=always
|
||||
StartLimitBurst=1000000
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
4
.config/polybar/batt/rk818_battery.sh
Executable file
4
.config/polybar/batt/rk818_battery.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
PERCENTAGESTR=$(upower -i /org/freedesktop/UPower/devices/battery_rk818_battery | grep percentage)
|
||||
echo "${PERCENTAGESTR//[!0-9]/}" > /home/katie/.config/polybar/batt/rk818-battery/
|
11
.config/polybar/batt/rk818_charge_now_compat.service
Normal file
11
.config/polybar/batt/rk818_charge_now_compat.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=RK818 Battery charge_now Compatability Service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
ExecStart=rk818_battery.sh
|
||||
Restart=always
|
||||
StartLimitBurst=1000000
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
656
.config/polybar/config.ini
Normal file
656
.config/polybar/config.ini
Normal file
|
@ -0,0 +1,656 @@
|
|||
;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
;
|
||||
; The README contains alot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#EEE}
|
||||
foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
;primary = ${xrdb:color1:#777}
|
||||
primary = #ff00ff
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
;underline = ${xrdb:color8}
|
||||
underline = #ffffff
|
||||
;cpu = ${xrdb:color11}
|
||||
cpu = #ffffff
|
||||
;memory = ${xrdb:color14}
|
||||
memory = #ffffff
|
||||
;redshift = ${xrdb:color13}
|
||||
redshift = #ff0000
|
||||
;bluetooth = ${xrdb:color15}
|
||||
bluetooth = #0000ff
|
||||
;alter1 = ${xrdb:color4}
|
||||
alter1 = #ffffff
|
||||
;alter2 = ${xrdb:color3}
|
||||
alter2 = #ffffff
|
||||
|
||||
[bar/bar1]
|
||||
monitor = ${env:MONITOR:DSI-1}
|
||||
width = 99%
|
||||
height = 27
|
||||
offset-x = 0.5%
|
||||
;offset-y = 0.5%
|
||||
radius = 0
|
||||
fixed-center = true
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 2
|
||||
padding-right = 0
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
|
||||
font-0 = cherry-11-r;2
|
||||
font-1 = Wuncon Siji:pixelsize=12;2
|
||||
font-2 = Weather Icons:size=12;4
|
||||
font-3 = Monoid Nerd Font Mono:size=12;2
|
||||
font-4 = SauceCodePro Nerd Font:size=18:antialias=false;4
|
||||
font-5 = Material Icons:size=10;2
|
||||
font-6 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||
|
||||
|
||||
modules-left = bspwm
|
||||
;modules-center = player-mpris-simple
|
||||
;modules-right = left-bluetooth bluetooth right-bluetooth left-redshift info-redshift-temp right-redshift left-memory memory right-memory left-cpu cpu right-cpu left-temp temperature right-temp left-date date2 right-date
|
||||
modules-center = xwindow
|
||||
modules-right = filesystem pulseaudio memory cpu wlan combobatt temperature date sxmo powermenu
|
||||
;modules-right = pulseaudio
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
;tray-background = #0063ff
|
||||
|
||||
wm-restack = bspwm
|
||||
;wm-restack = i3
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
;scroll-up = bspwm-desknext
|
||||
;scroll-down = bspwm-deskprev
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %name%
|
||||
label-focused-background = ${colors.background}
|
||||
label-focused-padding = 2
|
||||
label-focused-underline = ${colors.alter2}
|
||||
|
||||
label-occupied = %name%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %name%!
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %name%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 2
|
||||
|
||||
; Separator in between workspaces
|
||||
label-separator = |
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
|
||||
;format-prefix = " "
|
||||
format-prefix = "⏳ "
|
||||
format-prefix-background = ${colors.background}
|
||||
format-prefix-foreground = ${colors.alter1}
|
||||
;format-underline = ${colors.underline}
|
||||
label = %percentage:2%%
|
||||
label-foreground = ${colors.alter1}
|
||||
label-background = ${colors.background}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-background = ${colors.background}
|
||||
format-prefix-foreground = ${colors.alter2}
|
||||
;format-underline = ${colors.underline}
|
||||
label = %percentage_used%%
|
||||
label-foreground = ${colors.alter2}
|
||||
label-background = ${colors.background}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
|
||||
date =
|
||||
date-alt = " %Y-%m-%d"
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
format-prefix =
|
||||
format-prefix-foreground = ${colors.alter1}
|
||||
format-prefix-background = ${colors.background}
|
||||
;format-underline = ${colors.underline}
|
||||
|
||||
label = %date% %time%
|
||||
label-foreground = ${colors.alter1}
|
||||
label-background = ${colors.background}
|
||||
|
||||
[module/date2]
|
||||
type = custom/script
|
||||
interval = 5
|
||||
|
||||
exec = date +%R" "%a" "%d" "%b" "%Y
|
||||
|
||||
click-left = calendar.sh
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.alter1}
|
||||
format-prefix-background = ${colors.background}
|
||||
;format-underline = ${colors.underline}
|
||||
|
||||
label-foreground = ${colors.alter1}
|
||||
label-background = ${colors.background}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
format-volume-padding = 2
|
||||
label-volume = VOL %percentage%%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
label-muted = muted
|
||||
label-muted-foreground = #666
|
||||
|
||||
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 = 7
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 7
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 7
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
padding-left = 2
|
||||
|
||||
format = <ramp> <label>
|
||||
format-background = ${colors.background}
|
||||
format-foreground = ${colors.alter2}
|
||||
;format-underline = ${colors.underline}
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-background = ${colors.alert}
|
||||
; format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature-c%
|
||||
label-background = ${colors.background}
|
||||
label-warn = %temperature-c%
|
||||
label-warn-foreground = ${colors.alter2}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
; ramp-foreground = ${colors.background}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
;label-open =
|
||||
label-open = ⏻
|
||||
label-open-foreground = ${colors.alert}
|
||||
label-close =
|
||||
label-close-foreground = ${colors.alert}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
label-open-padding = 2
|
||||
label-close-padding = 2
|
||||
|
||||
menu-0-0 =
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 = ⏼
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 =
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = ⏼
|
||||
menu-1-1-exec = reboot
|
||||
|
||||
menu-2-0 = ⏼
|
||||
menu-2-0-exec = poweroff
|
||||
menu-2-1 =
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[module/player-mpris-simple]
|
||||
type = custom/script
|
||||
exec = ~/.scripts/player-mpris-simple.sh
|
||||
interval = 3
|
||||
click-left = playerctl previous 2> /dev/null
|
||||
click-right = playerctl next 2> /dev/null
|
||||
click-middle = playerctl play-pause 2> /dev/null
|
||||
|
||||
[module/info-redshift-temp]
|
||||
type = custom/script
|
||||
exec = ~/.scripts/info-redshift-temp.sh
|
||||
interval = 5
|
||||
label-background = ${colors.alter1}
|
||||
;format-underline=${colors.underline}
|
||||
|
||||
[module/bluetooth]
|
||||
type = custom/script
|
||||
exec = ~/.scripts/bluetooth.sh
|
||||
interval = 5
|
||||
label-background = ${colors.alter2}
|
||||
label-font = 4
|
||||
;format-underline=${colors.underline}
|
||||
|
||||
[module/notification-github]
|
||||
type = custom/script
|
||||
exec = ~/.scripts/notification-github.sh
|
||||
interval = 60
|
||||
label-background = ${colors.alter1}
|
||||
|
||||
[module/openweathermap-fullfeatured]
|
||||
type = custom/script
|
||||
exec = ~/.scripts/openweathermap-fullfeatured.sh
|
||||
interval = 600
|
||||
label-font = 3
|
||||
label-background = ${colors.alter2}
|
||||
label-foreground = ${colors.background}
|
||||
|
||||
[module/pomo]
|
||||
type = custom/script
|
||||
interval = 1
|
||||
exec = pomo status
|
||||
label-background = ${colors.alter1}
|
||||
label-foreground = ${colors.background}
|
||||
|
||||
[module/vpn-nordvpn-status]
|
||||
type = custom/script
|
||||
exec = ~/.scripts/vpn-nordvpn-status.sh
|
||||
interval = 5
|
||||
label-background = ${colors.alter2}
|
||||
label-foreground = ${colors.background}
|
||||
|
||||
|
||||
[module/left-glyph]
|
||||
type = custom/text
|
||||
content = %{T5}%{T-}
|
||||
content-background=${colors.background}
|
||||
|
||||
[module/right-glyph]
|
||||
type = custom/text
|
||||
content = %{T5}%{T-}
|
||||
content-background=${colors.background}
|
||||
|
||||
[module/left-date]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/date.label-background}
|
||||
|
||||
[module/right-date]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/date.label-background}
|
||||
|
||||
[module/left-memory]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/memory.label-background}
|
||||
|
||||
[module/right-memory]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/memory.label-background}
|
||||
|
||||
[module/left-cpu]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/cpu.label-background}
|
||||
|
||||
[module/right-cpu]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/cpu.label-background}
|
||||
|
||||
[module/left-temp]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/temperature.label-background}
|
||||
|
||||
[module/right-temp]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/temperature.label-background}
|
||||
|
||||
[module/left-redshift]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/info-redshift-temp.label-background}
|
||||
|
||||
[module/right-redshift]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/info-redshift-temp.label-background}
|
||||
|
||||
[module/left-bluetooth]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/bluetooth.label-background}
|
||||
|
||||
[module/right-bluetooth]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/bluetooth.label-background}
|
||||
|
||||
[module/left-github]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/notification-github.label-background}
|
||||
|
||||
[module/right-github]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/notification-github.label-background}
|
||||
|
||||
[module/left-weather]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/openweathermap-fullfeatured.label-background}
|
||||
|
||||
[module/right-weather]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/openweathermap-fullfeatured.label-background}
|
||||
|
||||
[module/left-pomo]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/pomo.label-background}
|
||||
|
||||
[module/right-pomo]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/pomo.label-background}
|
||||
|
||||
[module/left-nordvpn]
|
||||
inherit = module/left-glyph
|
||||
content-foreground = ${module/vpn-nordvpn-status.label-background}
|
||||
|
||||
[module/right-nordvpn]
|
||||
inherit = module/right-glyph
|
||||
content-foreground = ${module/vpn-nordvpn-status.label-background}
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
;pseudo-transparency = false
|
||||
|
||||
[global/wm]
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
|
||||
; vim:ft=dosini
|
||||
|
||||
;
|
||||
; ◢ ◣ ◥ ◤
|
||||
;
|
||||
|
||||
|
||||
; _ _ _ _ _ _ ____ _____ ____
|
||||
; | | | | \ | | | | / ___|| ____| _ \
|
||||
; | | | | \| | | | \___ \| _| | | | |
|
||||
; | |_| | |\ | |_| |___) | |___| |_| |
|
||||
; \___/|_| \_|\___/|____/|_____|____/
|
||||
|
||||
; __ __ ___ ____ _ _ _ _____ ____
|
||||
; | \/ |/ _ \| _ \| | | | | | ____/ ___|
|
||||
; | |\/| | | | | | | | | | | | | _| \___ \
|
||||
; | | | | |_| | |_| | |_| | |___| |___ ___) |
|
||||
; |_| |_|\___/|____/ \___/|_____|_____|____/
|
||||
|
||||
[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 = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/alsa]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL
|
||||
label-volume-foreground = ${root.foreground}
|
||||
label-volume-padding = 2
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
label-muted-padding = 2
|
||||
|
||||
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/combobatt]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/battery-combined-shell.sh
|
||||
interval = 1
|
||||
|
||||
[module/sxmo]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/sxmo.sh
|
||||
interval = 1
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = rk818-battery
|
||||
adapter = rk818-usb
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
;format-discharging = <animation-discharging> <label-discharging>
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
;format-full-prefix = " "
|
||||
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-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 1000
|
||||
|
||||
animation-discharging-0 =
|
||||
animation-discharging-1 =
|
||||
animation-discharging-2 =
|
||||
animation-discharging-foreground = ${colors.foreground-alt}
|
||||
animation-discharging-framerate = 750
|
||||
|
||||
[module/ppkbbattery]
|
||||
type = internal/battery
|
||||
battery = ip5xxx-battery
|
||||
adapter = ip5xxx-usb
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
;format-discharging = <animation-discharging> <label-discharging>
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
;format-full-prefix = " "
|
||||
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-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 1000
|
||||
|
||||
animation-discharging-0 =
|
||||
animation-discharging-1 =
|
||||
animation-discharging-2 =
|
||||
animation-discharging-foreground = ${colors.foreground-alt}
|
||||
animation-discharging-framerate = 750
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlan0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-connected-underline = ${colors.underline}
|
||||
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-4 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-0 =
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||
|
||||
icon-prev =
|
||||
icon-stop =
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-next =
|
||||
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
label-foreground = ${colors.foreground}
|
||||
|
||||
[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/eth]
|
||||
type = internal/network
|
||||
interface = enp0s31f6
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = ${colors.underline}
|
||||
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}
|
||||
|
14
.config/polybar/launch.sh
Executable file
14
.config/polybar/launch.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
# If all your bars have ipc enabled, you can use
|
||||
polybar-msg cmd quit
|
||||
# Otherwise you can use the nuclear option:
|
||||
# killall -q polybar
|
||||
|
||||
# Launch bar1 and bar2
|
||||
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
|
||||
polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown
|
||||
#polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown
|
||||
|
||||
echo "Bars launched..."
|
111
.config/polybar/scripts/battery-combined-shell.sh
Executable file
111
.config/polybar/scripts/battery-combined-shell.sh
Executable file
|
@ -0,0 +1,111 @@
|
|||
#!/bin/sh
|
||||
|
||||
PATH_AC_0="/sys/class/power_supply/rk818-battery"
|
||||
PATH_AC_1="/sys/class/power_supply/ip5xxx-battery"
|
||||
PATH_BATTERY_0="/sys/class/power_supply/rk818-battery"
|
||||
PATH_BATTERY_1="/sys/class/power_supply/ip5xxx-battery"
|
||||
|
||||
ac_0=""
|
||||
ac_1=""
|
||||
battery_level_0=0
|
||||
battery_level_1=0
|
||||
#battery_max_0=0
|
||||
#battery_max_1=0
|
||||
|
||||
if [ -f "$PATH_AC_0/status" ]; then
|
||||
ac_0=$(cat "$PATH_AC_0/status" 2>/dev/null)
|
||||
else
|
||||
ac_0="-1"
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_AC_1/status" ]; then
|
||||
ac_1=$(cat "$PATH_AC_1/status" 2>/dev/null)
|
||||
else
|
||||
ac_1="-1"
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_0/capacity" ]; then
|
||||
battery_level_0=$(cat "$PATH_BATTERY_0/capacity" 2>/dev/null)
|
||||
else
|
||||
battery_level_0=-1
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_1/capacity" ]; then
|
||||
battery_level_1=$(cat "$PATH_BATTERY_1/capacity" 2>/dev/null)
|
||||
else
|
||||
battery_level_1=-1
|
||||
fi
|
||||
|
||||
# Sometimes the percentage is greater than 100, so we fix
|
||||
# that here.
|
||||
|
||||
if [[ "$battery_level_0" -gt "100" ]]; then
|
||||
battery_level_0=100
|
||||
fi
|
||||
|
||||
if [[ "$battery_level_1" -gt "100" ]]; then
|
||||
battery_level_1=100
|
||||
fi
|
||||
|
||||
# If a battery is removed during runtime, the class files still
|
||||
# remain, but you can't read them. This fixes that.
|
||||
|
||||
if [[ "$battery_level_0" == "" ]]; then
|
||||
battery_level_0=-1
|
||||
fi
|
||||
|
||||
if [[ "$battery_level_1" == "" ]]; then
|
||||
battery_level_1=-1
|
||||
fi
|
||||
|
||||
if [ "$ac_0" = "Charging" ] || [ "$ac_0" = "Full" ]; then
|
||||
icon0=""
|
||||
else
|
||||
if [[ "$battery_level_0" -gt "97" ]]; then
|
||||
icon0=""
|
||||
elif [[ "$battery_level_0" -gt "85" ]]; then
|
||||
icon0=""
|
||||
elif [[ "$battery_level_0" -gt "60" ]]; then
|
||||
icon0=""
|
||||
elif [[ "$battery_level_0" -gt "35" ]]; then
|
||||
icon0=""
|
||||
elif [[ "$battery_level_0" -gt "10" ]]; then
|
||||
icon0=""
|
||||
elif [[ "$battery_level_0" -gt "0" ]]; then
|
||||
icon0=""
|
||||
else
|
||||
icon0="!"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$ac_1" = "Charging" ] || [ "$ac_1" = "Full" ]; then
|
||||
icon1=""
|
||||
else
|
||||
if [[ "$battery_level_1" -gt "97" ]]; then
|
||||
icon1=""
|
||||
elif [[ "$battery_level_1" -gt "85" ]]; then
|
||||
icon1=""
|
||||
elif [[ "$battery_level_1" -gt "60" ]]; then
|
||||
icon1=""
|
||||
elif [[ "$battery_level_1" -gt "35" ]]; then
|
||||
icon1=""
|
||||
elif [[ "$battery_level_1" -gt "10" ]]; then
|
||||
icon1=""
|
||||
elif [[ "$battery_level_1" -ge "0" ]]; then
|
||||
icon1=""
|
||||
else
|
||||
icon1="!"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$battery_level_0" -lt "0" ]]; then
|
||||
echo -n "$icon0 N/A"
|
||||
else
|
||||
echo -n "$icon0 $battery_level_0 % "
|
||||
fi
|
||||
|
||||
if [[ "$battery_level_1" -lt "0" ]]; then
|
||||
echo -n "$icon1 N/A"
|
||||
else
|
||||
echo -n "$icon1 $battery_level_1 %"
|
||||
fi
|
4
.config/polybar/scripts/sxmo.sh
Executable file
4
.config/polybar/scripts/sxmo.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
state=$(cat $SXMO_STATE 2>/dev/null)
|
||||
echo $state
|
|
@ -1 +0,0 @@
|
|||
/home/katie/.config/sxhkd/
|
140
.config/sxhkd/sxhkdrc
Normal file
140
.config/sxhkd/sxhkdrc
Normal file
|
@ -0,0 +1,140 @@
|
|||
#
|
||||
# wm independent hotkeys
|
||||
#
|
||||
|
||||
# terminal emulator
|
||||
#super + Return
|
||||
alt + Return
|
||||
xfce4-terminal
|
||||
|
||||
# program launcher
|
||||
#super + @space
|
||||
alt + @space
|
||||
dmenu_run
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
#super + Escape
|
||||
alt + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
#
|
||||
# bspwm hotkeys
|
||||
#
|
||||
|
||||
# quit/restart bspwm
|
||||
ctrl + alt + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
|
||||
# close and kill
|
||||
alt + {_,shift + }w
|
||||
bspc node -{c,k}
|
||||
|
||||
# alternate between the tiled and monocle layout
|
||||
alt + m
|
||||
bspc desktop -l next
|
||||
|
||||
# send the newest marked node to the newest preselected node
|
||||
alt + y
|
||||
bspc node newest.marked.local -n newest.!automatic.local
|
||||
|
||||
# swap the current node and the biggest window
|
||||
alt + g
|
||||
bspc node -s biggest.window
|
||||
|
||||
#
|
||||
# state/flags
|
||||
#
|
||||
|
||||
# set the window state
|
||||
alt + {t,shift + t,s,f}
|
||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||
|
||||
# set the node flags
|
||||
alt + ctrl + {m,x,y,z}
|
||||
bspc node -g {marked,locked,sticky,private}
|
||||
|
||||
#
|
||||
# focus/swap
|
||||
#
|
||||
|
||||
# focus the node in the given direction
|
||||
alt + {_,shift + }{h,j,k,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
|
||||
# focus the node for the given path jump
|
||||
alt + {p,b,comma,period}
|
||||
bspc node -f @{parent,brother,first,second}
|
||||
|
||||
# focus the next/previous window in the current desktop
|
||||
alt + {_,shift + }c
|
||||
bspc node -f {next,prev}.local.!hidden.window
|
||||
|
||||
# focus the next/previous desktop in the current monitor
|
||||
alt + bracket{left,right}
|
||||
bspc desktop -f {prev,next}.local
|
||||
|
||||
# focus the last node/desktop
|
||||
alt + {grave,Tab}
|
||||
bspc {node,desktop} -f last
|
||||
|
||||
# focus the older or newer node in the focus history
|
||||
alt + {o,i}
|
||||
bspc wm -h off; \
|
||||
bspc node {older,newer} -f; \
|
||||
bspc wm -h on
|
||||
|
||||
# focus or send to the given desktop
|
||||
alt + {_,shift + }{1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||
|
||||
#
|
||||
# preselect
|
||||
#
|
||||
|
||||
# preselect the direction
|
||||
shift + alt + {h,j,k,l}
|
||||
bspc node -p {west,south,north,east}
|
||||
|
||||
# preselect the ratio
|
||||
shift + alt + {1-9}
|
||||
bspc node -o 0.{1-9}
|
||||
|
||||
# cancel the preselection for the focused node
|
||||
shift + alt + space
|
||||
bspc node -p cancel
|
||||
|
||||
# cancel the preselection for the focused desktop
|
||||
shift + alt + space
|
||||
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||
|
||||
#
|
||||
# move/resize
|
||||
#
|
||||
|
||||
# expand a window by moving one of its side outward
|
||||
shift + ctrl + {h,j,k,l}
|
||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||
|
||||
# contract a window by moving one of its side inward
|
||||
shift + ctrl + alt + {h,j,k,l}
|
||||
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
||||
|
||||
# move a floating window
|
||||
#alt + {Left,Down,Up,Right}
|
||||
shift + ctrl + alt + {Left,Down,Up,Right}
|
||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
||||
|
||||
#XF86AudioRaiseVolume
|
||||
# amixer set Master 5%+
|
||||
|
||||
#XF86AudioLowerVolume
|
||||
# amixer set Master 5%-
|
||||
|
||||
XF86AudioRaiseVolume
|
||||
sxmo_multikey.sh volup volup_one volup_two volup_three
|
||||
|
||||
XF86AudioLowerVolume
|
||||
sxmo_multikey.sh voldown voldown_one voldown_two voldown_three
|
||||
|
||||
XF86PowerOff
|
||||
sxmo_multikey.sh powerbutton powerbutton_one powerbutton_two powerbutton_three
|
Loading…
Reference in a new issue