From a4b7e8c815113cfd7f08e62d1b28535e86894b05 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Thu, 7 Apr 2022 21:22:19 -0500 Subject: [PATCH] added dunst, vnc configs, battlvl script --- .gitignore | 1 + bin/battlvl | 10 ++++++++++ dunst/dunstrc | 6 ++++++ herbstluftwm/ellison/autostart | 9 +++++---- shell/bashrc.d/01-common.sh | 1 + vnc/default.tigervnc | 30 ++++++++++++++++++++++++++++++ 6 files changed, 53 insertions(+), 4 deletions(-) create mode 100755 bin/battlvl create mode 100644 dunst/dunstrc create mode 100644 vnc/default.tigervnc diff --git a/.gitignore b/.gitignore index 6c5df6d..e065d56 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ qutebrowser/bookmarks qutebrowser/quickmarks qutebrowser/qsettings qutebrowser/qutepocket.secrets +vnc/tigervnc.history diff --git a/bin/battlvl b/bin/battlvl new file mode 100755 index 0000000..c7a5fe5 --- /dev/null +++ b/bin/battlvl @@ -0,0 +1,10 @@ +#!/bin/sh + +# battery percentage +battpct="$(upower --show-info $(upower --enumerate | grep -i 'BAT') | grep -E "percentage" | awk '{print $2}')" +battpct="${battpct%\%}" + +# battery status (charging/charged/etc) +batstat="$(upower --show-info $(upower --enumerate | grep -i 'BAT') | grep -E "state" | awk '{print $2}')" + +notify-send "Battery: ${battpct}% ($batstat)" diff --git a/dunst/dunstrc b/dunst/dunstrc new file mode 100644 index 0000000..bccd2b1 --- /dev/null +++ b/dunst/dunstrc @@ -0,0 +1,6 @@ +[global] + width = (100, 600) + offset = 50x50 + frame_color = "#00ff00" + font = Monospace 18 + corner_radius = 15 diff --git a/herbstluftwm/ellison/autostart b/herbstluftwm/ellison/autostart index e2b654f..cb3a122 100755 --- a/herbstluftwm/ellison/autostart +++ b/herbstluftwm/ellison/autostart @@ -52,10 +52,11 @@ hc set_layout max # keybindings Mod=Mod4 # Use the super key as the main modifier -hc keybind $Mod-Alt-q quit -hc keybind $Mod-Alt-r reload -hc keybind $Mod-Alt-Tab cycle_all +1 -hc keybind $Mod-Control-c close +hc keybind $Mod-Shift-q quit +hc keybind $Mod-Control-r reload +hc keybind $Mod-Shift-c close +hc keybind $Mod-Control-Return spawn qutebrowser +hc keybind $Mod-Tab cycle_all +1 hc keybind XF86AudioRaiseVolume spawn sh -c "pamixer -i 5; pamixer --get-volume >> \"$xobpipe\"; $refresh_panel" hc keybind XF86AudioLowerVolume spawn sh -c "pamixer -d 5; pamixer --get-volume >> \"$xobpipe\"; $refresh_panel" diff --git a/shell/bashrc.d/01-common.sh b/shell/bashrc.d/01-common.sh index 80080f4..e24409d 100644 --- a/shell/bashrc.d/01-common.sh +++ b/shell/bashrc.d/01-common.sh @@ -19,6 +19,7 @@ export BROWSER=qutebrowser export BAT_THEME='Wombat' export DOTNET_ROOT=~/.dotnet export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1 +export GPG_TTY=$(tty) alias ls='exa --icons' alias cat='bat' diff --git a/vnc/default.tigervnc b/vnc/default.tigervnc new file mode 100644 index 0000000..a0ef530 --- /dev/null +++ b/vnc/default.tigervnc @@ -0,0 +1,30 @@ +TigerVNC Configuration file Version 1.0 + +ServerName=voidism +X509CA=/home/rudism/.vnc/x509_ca.pem +X509CRL=/home/rudism/.vnc/x509_crl.pem +SecurityTypes=X509Plain,TLSPlain,X509Vnc,TLSVnc,X509None,TLSNone,VncAuth,None +EmulateMiddleButton=0 +DotWhenNoCursor=0 +ReconnectOnError=1 +AutoSelect=1 +FullColor=1 +LowColorLevel=2 +PreferredEncoding=Tight +CustomCompressLevel=0 +CompressLevel=2 +NoJPEG=0 +QualityLevel=8 +FullScreen=1 +FullScreenMode=Current +FullScreenSelectedMonitors=1 +DesktopSize= +RemoteResize=0 +ViewOnly=0 +Shared=0 +AcceptClipboard=1 +SendClipboard=1 +SendPrimary=1 +SetPrimary=1 +MenuKey=F8 +FullscreenSystemKeys=1