From 88aff77c723fe20ad8c6f1ed20884da44c56c2b5 Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Thu, 9 Mar 2023 12:57:37 +0100
Subject: [PATCH] Cleanup configs

---
 .bin/autoinstall                                  |  4 ++--
 .config/autostart.toml                            |  2 +-
 .config/environment                               |  1 +
 .config/polybar/bars.ini                          |  2 +-
 .config/polybar/scripts/player-mpris-simple.sh    | 15 ++++-----------
 .config/sxhkd/sxhkdrc                             |  6 ------
 .../userdata/124058718/730/local/cfg/config.cfg   |  8 ++++----
 7 files changed, 13 insertions(+), 25 deletions(-)

diff --git a/.bin/autoinstall b/.bin/autoinstall
index 78a8ebf..2eeb1b8 100755
--- a/.bin/autoinstall
+++ b/.bin/autoinstall
@@ -5,8 +5,8 @@ _autoinstall_base () {
 		"$HOME/.config/vim/autoload/plug.vim" \
 		&& [ -x "$(command -v vim)" ] && yes | vim +'PlugInstall --sync' +qa --not-a-term
 
-	_autoinstall_git "https://github.com/AstroNvim/AstroNvim" "$HOME/.config/nvim" \
-		&& [ -x "$(command -v nvim)" ] && nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
+	#_autoinstall_git "https://github.com/AstroNvim/AstroNvim" "$HOME/.config/nvim" \
+	#	&& [ -x "$(command -v nvim)" ] && nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
 
 	[ ! -x "$(command -v starship)" ] \
 		&& curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
diff --git a/.config/autostart.toml b/.config/autostart.toml
index d9ac440..2d7e02a 100644
--- a/.config/autostart.toml
+++ b/.config/autostart.toml
@@ -6,7 +6,7 @@ element = 'flatpak run im.riot.Riot'
 kdeconnect = '$HOME/.nix-profile/libexec/kdeconnectd'
 parcellite = 'parcellite'
 qutebrowser = 'qutebrowser'
-spotify = 'spotifyd --no-daemon'
+spotifyd = 'spotifyd --no-daemon'
 sxhkd = 'sxhkd'
 syncthing = 'syncthing -no-browser'
 teamspeak = 'flatpak run com.teamspeak.TeamSpeak -nosingleinstance'
diff --git a/.config/environment b/.config/environment
index 896785b..29c10d3 100644
--- a/.config/environment
+++ b/.config/environment
@@ -65,6 +65,7 @@ export QT_QPA_PLATFORMTHEME="qt5ct"
 #export SDL_VIDEODRIVER="wayland"
 
 export TERMINAL="alacritty"
+export TIME_STYLE="long-iso"
 
 export VIMINIT="if has('nvim') | source $XDG_CONFIG_HOME/nvim/init.lua | else | source $XDG_CONFIG_HOME/vim/vimrc | endif"
 
diff --git a/.config/polybar/bars.ini b/.config/polybar/bars.ini
index 18fc797..9a31adb 100644
--- a/.config/polybar/bars.ini
+++ b/.config/polybar/bars.ini
@@ -48,7 +48,6 @@
     inherit = bar/base
 
     modules-left = bspwm title
-    modules-center = player-mpris-simple
     modules-right = openweather memory cpu temperature eth check-arch-updates date
 
     eth-interface = enp0s31f6
@@ -57,6 +56,7 @@
     inherit = bar/portalo-base
 
     modules-left = bspwm bsp-layout-primary title
+    modules-center = player-mpris-simple
 
     monitor = ${env:MONITOR_PRIMARY}
 
diff --git a/.config/polybar/scripts/player-mpris-simple.sh b/.config/polybar/scripts/player-mpris-simple.sh
index a32596b..64252bf 100755
--- a/.config/polybar/scripts/player-mpris-simple.sh
+++ b/.config/polybar/scripts/player-mpris-simple.sh
@@ -1,13 +1,6 @@
 #!/usr/bin/env sh
 
-playerctl="playerctl -p spotifyd"
-
-player_status=$($playerctl status 2> /dev/null)
-
-if [ "$player_status" = "Playing" ]; then
-    echo " $($playerctl metadata -f '{{title}} - {{artist}} | {{duration(position)}}/{{duration(mpris:length)}}')"
-elif [ "$player_status" = "Paused" ]; then
-    echo " $($playerctl metadata -f '{{title}} - {{artist}} | {{duration(position)}}/{{duration(mpris:length)}}')"
-else
-    echo ""
-fi
+playerctl -p spotifyd metadata -f '{{ uc(status) }} {{title}} - {{artist}} | {{duration(position)}}/{{duration(mpris:length)}}' 2>/dev/null \
+	| sed -e 's/PLAYING//' \
+		-e 's/PAUSED//' \
+		-e 's/STOPPED//'
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index df17702..fa8859a 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -122,12 +122,6 @@ super + bracket{left,right}
 super + {grave,Tab}
     bspc {node,desktop} -f last
 
-# focus the older or newer node in the focus history
-super + {o,i}
-    bspc wm -h off; \
-    bspc node {older,newer} -f; \
-    bspc wm -h on
-
 # focus or send to the given desktop
 super + {_,shift + }{1-9,0}
     bspc {desktop -f,node -d} '^{1-9,10}'
diff --git a/.var/app/com.valvesoftware.Steam/.local/share/Steam/userdata/124058718/730/local/cfg/config.cfg b/.var/app/com.valvesoftware.Steam/.local/share/Steam/userdata/124058718/730/local/cfg/config.cfg
index 25b402e..857b04a 100644
--- a/.var/app/com.valvesoftware.Steam/.local/share/Steam/userdata/124058718/730/local/cfg/config.cfg
+++ b/.var/app/com.valvesoftware.Steam/.local/share/Steam/userdata/124058718/730/local/cfg/config.cfg
@@ -157,8 +157,8 @@ c_thirdpersonshoulderaimdist "120.0"
 c_thirdpersonshoulderdist "40.0"
 c_thirdpersonshoulderheight "5.0"
 c_thirdpersonshoulderoffset "20.0"
-cachedvalue_count_partybrowser "1673119755"
-cachedvalue_count_teammates "1673119749"
+cachedvalue_count_partybrowser "1676212496"
+cachedvalue_count_teammates "1676212497"
 cam_collision "1"
 cam_idealdelta "4.0"
 cam_idealdist "150"
@@ -456,7 +456,7 @@ player_competitive_maplist_2v2_10_0_E8C782EC "mg_de_train,mg_de_lake,mg_de_infer
 player_competitive_maplist_8_10_0_C9C8D674 "mg_de_ancient,mg_de_inferno,mg_de_nuke,mg_de_vertigo,mg_de_mirage,mg_de_anubis,mg_de_overpass,mg_de_dust2,mg_de_train,mg_cs_office,mg_de_cache,mg_de_tuscan,mg_lobby_mapveto,mg_cs_agency"
 player_nevershow_communityservermessage "0"
 player_survival_list_10_0_303 "mg_dz_blacksite,mg_dz_sirocco,mg_dz_vineyard,mg_dz_ember"
-player_teamplayedlast "2"
+player_teamplayedlast "3"
 player_wargames_list2_10_0_E04 "mg_skirmish_flyingscoutsman,mg_skirmish_armsrace,mg_skirmish_demolition,mg_skirmish_retakes"
 r_drawmodelstatsoverlaymax "1.5"
 r_drawmodelstatsoverlaymin "0.1"
@@ -553,7 +553,7 @@ ui_deepstats_toplevel_mode "240"
 ui_inventorysettings_recently_acknowledged ""
 ui_mainmenu_bkgnd_movie_CC4ECB9 "anubis"
 ui_nearbylobbies_filter3 "competitive"
-ui_news_last_read_link "https://blog.counter-strike.net/index.php/2022/12/40596/"
+ui_news_last_read_link "https://blog.counter-strike.net/index.php/2023/02/41047/"
 ui_playsettings_custom_preset "mg_de_mirage,mg_de_inferno,mg_de_overpass,mg_de_ancient,mg_de_train,mg_de_cache"
 ui_playsettings_directchallengekey "ATRYH-RQPC-SF3DP-J43J"
 ui_playsettings_flags_listen_casual "0"