Housekeeping
This commit is contained in:
parent
4fc2bcab0a
commit
3ee70aa4e7
|
@ -152,24 +152,32 @@ exec --no-startup-id compton
|
||||||
exec --no-startup-id nextcloud
|
exec --no-startup-id nextcloud
|
||||||
|
|
||||||
# Conky
|
# Conky
|
||||||
exec --no-startup-id $HOME/bin/startconky.sh
|
exec --no-startup-id $HOME/bin/startup/start_conky.sh
|
||||||
|
|
||||||
# Redshift
|
# Redshift
|
||||||
exec --no-startup-id redshift-gtk
|
exec --no-startup-id redshift-gtk
|
||||||
|
|
||||||
# KeePassXC
|
# KeePassXC
|
||||||
exec --no-startup-id $HOME/bin/start_keepassxc.sh
|
exec --no-startup-id $HOME/bin/startup/start_keepassxc.sh
|
||||||
|
|
||||||
# Nemo
|
# Nemo
|
||||||
bindsym $mod+n exec nemo
|
bindsym $mod+n exec nemo
|
||||||
|
|
||||||
# Turn on/off internal laptop monitor
|
# Turn on/off monitors
|
||||||
bindsym $mod+Shift+s exec $HOME/bin/switch_monitors.sh
|
bindsym $mod+m exec $HOME/bin/xrandr/switch_monitors.sh -i
|
||||||
|
bindsym $mod+Shift+m exec $HOME/bin/xrandr/switch_monitors.sh -e
|
||||||
|
|
||||||
|
# Monitor setup
|
||||||
|
exec --no-startup-id $HOME/bin/xrandr/monitor_setup.sh single
|
||||||
|
|
||||||
|
# Window titlebar
|
||||||
|
for_window [class="^.*"] border pixel 2
|
||||||
|
|
||||||
# reload the configuration file
|
# reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
bindsym $mod+Shift+r restart
|
bindsym $mod+Shift+r restart
|
||||||
|
|
||||||
# exit i3 (logs you out of your X session)
|
# exit i3 (logs you out of your X session)
|
||||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
|
|
|
@ -45,13 +45,13 @@ padding-right = 2
|
||||||
module-margin-left = 2
|
module-margin-left = 2
|
||||||
module-margin-right = 2
|
module-margin-right = 2
|
||||||
|
|
||||||
font-0 = Icons:size=10;1
|
font-0 = FontAwesome:size=10;1
|
||||||
font-1 = siji:pixelsize=10;1
|
font-1 = siji:pixelsize=10;1
|
||||||
font-2 = Weather Icons:size=10;1
|
font-2 = Weather Icons:size=10;1
|
||||||
|
|
||||||
modules-left = i3
|
modules-left = powermenu i3
|
||||||
modules-center = datetime openweathermap
|
modules-center = datetime openweathermap
|
||||||
modules-right = system-usb-udev updates pulseaudio-tail wlan eth xkeyboard battery
|
modules-right = system-usb-udev updates pulseaudio-tail wlan eth vpn xkeyboard battery
|
||||||
|
|
||||||
tray-detached = false
|
tray-detached = false
|
||||||
tray-position = right
|
tray-position = right
|
||||||
|
@ -75,7 +75,7 @@ label-indicator-underline = ${colors.secondary}
|
||||||
|
|
||||||
[module/openweathermap]
|
[module/openweathermap]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/bin/openweathermap-simple.sh
|
exec = ~/bin/polybar/openweathermap-simple.sh
|
||||||
interval = 600
|
interval = 600
|
||||||
label-font = 3
|
label-font = 3
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ interface = wlo1
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
label-connected = ""
|
label-connected = " %essid%"
|
||||||
|
|
||||||
format-disconnected =
|
format-disconnected =
|
||||||
|
|
||||||
|
@ -175,6 +175,10 @@ label-close-foreground = ${colors.foreground}
|
||||||
label-separator = " / "
|
label-separator = " / "
|
||||||
label-separator-foreground = ${colors.foreground}
|
label-separator-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
;logout
|
||||||
|
menu-0-2 = ""
|
||||||
|
menu-0-2-exec = i3-msg exit
|
||||||
|
menu-0-2-foreground = ${colors.foreground}
|
||||||
; reboot
|
; reboot
|
||||||
menu-0-1 = ""
|
menu-0-1 = ""
|
||||||
menu-0-1-exec = systemctl reboot
|
menu-0-1-exec = systemctl reboot
|
||||||
|
@ -196,19 +200,25 @@ click-left = gsimplecal
|
||||||
|
|
||||||
[module/system-usb-udev]
|
[module/system-usb-udev]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/bin/system-usb-udev.sh
|
exec = ~/bin/polybar/system-usb-udev.sh
|
||||||
tail = true
|
tail = true
|
||||||
click-left = ~/bin/system-usb-udev.sh --mount
|
click-left = ~/bin/polybar/system-usb-udev.sh --mount
|
||||||
click-right = ~/bin/system-usb-udev.sh --unmount
|
click-right = ~/bin/polybar/system-usb-udev.sh --unmount
|
||||||
|
|
||||||
[module/pulseaudio-tail]
|
[module/pulseaudio-tail]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/bin/pulseaudio-tail.sh 2> /dev/null
|
exec = ~/bin/polybar/pulseaudio-tail.sh 2> /dev/null
|
||||||
tail = true
|
tail = true
|
||||||
click-right = ~/bin/pulseaudio-tail.sh --show 2> /dev/null
|
click-right = ~/bin/polybar/pulseaudio-tail.sh --show 2> /dev/null
|
||||||
click-left = ~/bin/pulseaudio-tail.sh --mute 2> /dev/null
|
click-left = ~/bin/polybar/pulseaudio-tail.sh --mute 2> /dev/null
|
||||||
scroll-up = ~/bin/pulseaudio-tail.sh --up 2> /dev/null
|
scroll-up = ~/bin/polybar/pulseaudio-tail.sh --up 2> /dev/null
|
||||||
scroll-down = ~/bin/pulseaudio-tail.sh --down 2> /dev/null
|
scroll-down = ~/bin/polybar/pulseaudio-tail.sh --down 2> /dev/null
|
||||||
|
|
||||||
|
[module/vpn]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/bin/polybar/vpn_running.sh
|
||||||
|
interval = 5
|
||||||
|
click-left = ~/bin/polybar/vpn_country.sh
|
||||||
|
|
||||||
[module/updates]
|
[module/updates]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
@ -229,6 +239,11 @@ format-charging-underline = ${colors.secondary}
|
||||||
format-discharging = <label-discharging>
|
format-discharging = <label-discharging>
|
||||||
format-discharging-underline = ${colors.alert}
|
format-discharging-underline = ${colors.alert}
|
||||||
|
|
||||||
|
label-full = ""
|
||||||
|
label-discharging = " %percentage%"
|
||||||
|
label-charging = " %percentage%"
|
||||||
|
|
||||||
|
|
||||||
[global/wm]
|
[global/wm]
|
||||||
margin-top = 5
|
margin-top = 5
|
||||||
margin-bottom = 5
|
margin-bottom = 5
|
||||||
|
|
5
.zshrc
5
.zshrc
|
@ -23,3 +23,8 @@ antigen theme gentoo
|
||||||
|
|
||||||
# Tell Antigen that you're done.
|
# Tell Antigen that you're done.
|
||||||
antigen apply
|
antigen apply
|
||||||
|
|
||||||
|
# VTE
|
||||||
|
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
||||||
|
source /etc/profile.d/vte.sh
|
||||||
|
fi
|
||||||
|
|
|
@ -25,7 +25,12 @@ get_icon() {
|
||||||
}
|
}
|
||||||
|
|
||||||
KEY=`secret-tool lookup openweathermap api_key`
|
KEY=`secret-tool lookup openweathermap api_key`
|
||||||
CITY=""
|
|
||||||
|
BRNO_CZ="3078610"
|
||||||
|
ZVOLEN_SK="3056459"
|
||||||
|
|
||||||
|
CITY=$BRNO_CZ
|
||||||
|
|
||||||
UNITS="metric"
|
UNITS="metric"
|
||||||
SYMBOL="°"
|
SYMBOL="°"
|
||||||
|
|
|
@ -15,14 +15,8 @@ volume_mute() {
|
||||||
}
|
}
|
||||||
|
|
||||||
volume_print() {
|
volume_print() {
|
||||||
if pacmd list-sinks | grep active | head -n 1 | grep -q speaker; then
|
|
||||||
icon=""
|
|
||||||
elif pacmd list-sinks | grep active | head -n 1 | grep headphones; then
|
|
||||||
icon=""
|
|
||||||
else
|
|
||||||
icon=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
icon=""
|
||||||
muted=$(pamixer --sink $sink --get-mute)
|
muted=$(pamixer --sink $sink --get-mute)
|
||||||
|
|
||||||
if [ "$muted" = true ]; then
|
if [ "$muted" = true ]; then
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$(pgrep openvpn)" ]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
fi
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
intern=eDP-1
|
|
||||||
extern=HDMI-1
|
|
||||||
|
|
||||||
if xrandr --listactivemonitors | grep "$intern"; then
|
|
||||||
xrandr --output "$intern" --off
|
|
||||||
else
|
|
||||||
xrandr --output "$intern" --auto
|
|
||||||
fi
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
intern=eDP-1
|
||||||
|
extern=HDMI-1
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
"-i")
|
||||||
|
m=$intern
|
||||||
|
;;
|
||||||
|
"-e")
|
||||||
|
m=$extern
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Wrong option"
|
||||||
|
esac
|
||||||
|
|
||||||
|
if xrandr --listactivemonitors | grep "$m"; then
|
||||||
|
xrandr --output "$m" --off
|
||||||
|
else
|
||||||
|
xrandr --output "$m" --auto
|
||||||
|
fi
|
Loading…
Reference in New Issue