Remove IVPN
This commit is contained in:
parent
0abb173a4a
commit
b11db7b745
|
@ -1,6 +1,6 @@
|
|||
# My dotfiles
|
||||
|
||||
This is a collection of some of my dotfiles for my Linux systems. These
|
||||
This is a collection of some of my dotfiles for my Linux systems. They
|
||||
work on Artix, Debian, Fedora and Ubuntu.
|
||||
|
||||
To install:
|
||||
|
@ -21,10 +21,9 @@ $ sudo ln -s $(which sudo) /usr/bin/doas
|
|||
|
||||
### Notes
|
||||
- You need to make `doas`/`sudo` rules that allow you to execute,
|
||||
`poweroff` and `reboot` (and additionally `ivpn-service` and `pkill
|
||||
"^ivpn-service$"` if you use IVPN) without a password, otherwise the
|
||||
`poweroff` and `reboot` without a password, otherwise the
|
||||
keybindings and scripts for those won't work.
|
||||
- The install script requires GNU Stow to work.
|
||||
- The installation script requires GNU Stow to work.
|
||||
- Make sure to thoroughly examine these dotfiles and change them to your
|
||||
needs before using them.
|
||||
- See the READMEs in the individual subfolders here for special notes.
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env dash
|
||||
|
||||
sleep 1
|
||||
|
||||
ivpn connect -ipv6tunnel -p wg -fastest -filter_invert dk \
|
||||
&& notify-send -u low "IVPN" "Successfully connected to IVPN server:\n$(ivpn status | sed -n 2p | xargs)" \
|
||||
|| notify-send -u critical "IVPN" "Failed to connect to IVPN\!"
|
||||
|
||||
sway-launcher-desktop autostart
|
|
@ -1,7 +1,6 @@
|
|||
# vi: ft=swayconfig
|
||||
|
||||
# Start background services
|
||||
exec doas ivpn-service
|
||||
exec mako
|
||||
exec pipewire
|
||||
exec pipewire-pulse
|
||||
|
@ -18,6 +17,5 @@ exec swayidle -w \
|
|||
before-sleep 'playerctl pause' \
|
||||
before-sleep 'swaylock'
|
||||
|
||||
# Custom script for VPN connection before XDG autostart applications
|
||||
# Also fixes tray icons not showing when app is started before Waybar is ready
|
||||
exec ~/.config/sway/autostart.sh
|
||||
# Fix tray icons not showing when app is started before Waybar is ready
|
||||
exec sleep 2 && sway-launcher-desktop autostart
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
"height": 36, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["idle_inhibitor", "sway/workspaces", "custom/usb", "sway/mode"],
|
||||
"modules-left": ["idle_inhibitor", "sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["custom/ivpn", "network", "pulseaudio", "backlight", "cpu", "memory", "battery", "tray"],
|
||||
"modules-right": ["custom/usb", "network", "pulseaudio", "backlight", "cpu", "memory", "battery", "tray"],
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
|
@ -107,13 +107,6 @@
|
|||
"format": "{icon} {percent}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"custom/ivpn": { // Custom status module for IVPN
|
||||
"format": "{} IVPN",
|
||||
"exec": "$HOME/.config/waybar/ivpn-status.sh",
|
||||
"return-type": "json",
|
||||
"interval": 1,
|
||||
"on-click": "$HOME/.config/waybar/ivpn-reconnect.sh"
|
||||
},
|
||||
"custom/usb": {
|
||||
"format": "{} USB",
|
||||
"exec": "$HOME/.config/waybar/usb-status.sh",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env dash
|
||||
|
||||
ivpn connect -last \
|
||||
&& notify-send -u low "IVPN" "Successfully reconnected to IVPN server:\n$(ivpn status | sed -n 2p | xargs)" \
|
||||
|| notify-send -u critical "IVPN" "Failed to reconnect to IVPN\!"
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env dash
|
||||
|
||||
STATUS=`ivpn status | awk '{print "\\\n"$0}'`
|
||||
TOOLTIP=`env echo -E ${STATUS} | cut -c 3-`
|
||||
CLASS=`env echo ${STATUS} | grep 'VPN' | awk '{print $3}' | tr [:upper:] [:lower:]`
|
||||
|
||||
[ "$CLASS" = "connected" ] && TEXT="\uf084" || TEXT="\uf071"
|
||||
|
||||
env echo "{\"text\": \"${TEXT}\", \"tooltip\": \"${TOOLTIP}\", \"class\": \"${CLASS}\"}"
|
|
@ -89,7 +89,6 @@ window#waybar.hidden {
|
|||
#mode,
|
||||
#idle_inhibitor,
|
||||
#mpd,
|
||||
#custom-ivpn,
|
||||
#custom-usb {
|
||||
padding: 0 4px;
|
||||
margin: 0 4px;
|
||||
|
@ -200,21 +199,11 @@ label:focus {
|
|||
box-shadow: inset 0 3px @violet;
|
||||
}
|
||||
|
||||
#custom-ivpn {
|
||||
color: @red;
|
||||
box-shadow: inset 0 3px @red;
|
||||
}
|
||||
|
||||
#custom-ivpn.connected {
|
||||
#custom-usb {
|
||||
color: @green;
|
||||
box-shadow: inset 0 3px @green;
|
||||
}
|
||||
|
||||
#custom-usb {
|
||||
color: @orange;
|
||||
box-shadow: inset 0 3px @orange;
|
||||
}
|
||||
|
||||
#custom-usb.unprotected {
|
||||
color: @red;
|
||||
box-shadow: inset 0 3px @red;
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
kill_services() {
|
||||
pgrep "^ivpn-service$" && ivpn disconnect
|
||||
doas pkill "^ivpn-service$"
|
||||
|
||||
pkill "^mako$"
|
||||
pkill "^wireplumber$"
|
||||
pkill "^pipewire-pulse$"
|
||||
|
|
Loading…
Reference in a new issue