Updates including wireguard vpn control

This commit is contained in:
Tyler Starr 2023-07-07 23:55:13 -07:00
parent ce3403a6b2
commit f807658d38
8 changed files with 51 additions and 11 deletions

View File

@ -3,4 +3,4 @@ inode/directory=pcmanfm.desktop;
text/html=firefox.desktop;
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
application/pdf=firefox.desktop

View File

@ -5,7 +5,7 @@
#----- VARIABLES
#-------------------------------------------------------------------------------
set $HOME /home/tstarr
set $HOME /home/{{ .user }}
set $DISP_PRI DP-2
set $DISP_SEC HDMI-A-1
@ -126,6 +126,7 @@ mode utility {
bindsym q exit
bindsym r reload
bindsym g exec "~/.config/sway/scripts/gamemode.sh", $e
bindsym v exec "~/.config/sway/scripts/toggle-vpn.sh {{ .hostname }}", $e
bindsym Escape mode default
}

View File

@ -43,7 +43,12 @@ rx=`expr $r2 - $r1`
txmb=$(echo "scale = 1; $tx / 1280000" | bc | awk '{printf "%05.1f\n", $0}')
rxmb=$(echo "scale = 1; $rx / 1280000" | bc | awk '{printf "%05.1f\n", $0}')
# Vpn status
vpn=$(nmcli c show --active | grep wireguard | cut -d ' ' -f1)
if $vpn ; then
vpn="none"
fi
#<span foreground='#c16b26'>lel</span>
echo -e "👍 $txmb 👎 $rxmb | ⬆️ $uptime_formatted | 🔉<span foreground='$volume_color'>$volume%</span> | $gamemode | 🐧 $linux_version | $date_formatted "
echo -e "👍 $txmb 👎 $rxmb | 📡 $vpn | ⬆️ $uptime_formatted | 🔉<span foreground='$volume_color'>$volume%</span> | $gamemode | 🐧 $linux_version | $date_formatted "

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
cons=$(nmcli -t -f NAME c show --active | grep $1)
if [ $cons ]; then
nmcli c down $1 1> /dev/null
else
nmcli c up $1 1> /dev/null
fi

View File

@ -0,0 +1,9 @@
# tmuxp config for general dev
session_name: dev
windows:
- window_name: editor
panes:
- shell_command:
- nvim
- window_name: term

View File

@ -1,6 +1,6 @@
# Additional Setup
The following documents some Debian setup that wasn't automated with ansible.
The following documents some Arch setup that wasn't automated with ansible.
## Wireguard Client
@ -12,6 +12,7 @@ Wireguard is nice for a home vpn and [pivpn](https://pivpn.io/) makes it easy.
nmcli connection import type wireguard file <conf file from pivpn>
```
3. Use `nm-connection-editor` to disable automatic connection
4. Connect to vpn with `nmcli connection up <vpn connection name>
## Mount network drives
@ -24,7 +25,7 @@ linux-mount-<network drive name>
## Taskopen for taskwarrior
[taskopen](https://github.com/jschlatow/taskopeni) is easier to install
[taskopen](https://github.com/jschlatow/taskopen) is easier to install
manually at this point since it isn't packaged and uses nim. Might get this
automated in the future.
@ -104,12 +105,26 @@ setup should usually be avoided by transfering the VM between machines:
2. On the source host run `virsh dumpxml VMNAME > domxml.xml` and copy this xml to the destination host
3. On the destination host run `virsh define domxml.xml`
## Google earth pro
## AUR Helper
[Google earth](https://www.google.com/earth/versions/) is nice for visualizing
my hikes and checking out snow levels. Download the RPM and install with yum.
I install the absolute minimum number of AUR packages (and I don't automate
thier installation). Run the following to install:
## Google chrome
```bash
git clone https://aur.archlinux.org/yay-git.git
cd yay
makepkg -si
```
[Google chrome](https://www.google.com/chrome/) is gross, but I like to watch baseball.
Download the RPM and install with yum.
I usually install the following packages:
1. Google Earth
2. Google Chrome (I like baseball)
## Yuzu
Copy over the `~/.config/yuzu` and `~/.local/share/yuzu` from prior install.
## GTK Theme
Set the GTK theme to `dracula` within the gnome-tweaks application.

View File

@ -4,6 +4,7 @@
- mpv # Video player based on MPlayer/mplayer2
- ffmpeg # Decoding, encoding and streaming software
- firefox
- gnome-tweaks
state: present
become: true

View File

@ -21,6 +21,7 @@
- chezmoi
- dbus-broker
- vulkan-tools
- fuse2
state: present
become: true