From 243dad55fcbb84e468716b9b381b927db6758f1b Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 24 Aug 2025 07:41:17 -0500 Subject: [PATCH] updates --- .../v1/custom | 150 +++++++++--------- .config/nvim/lua/plugins/codecomapnion.lua | 2 +- .config/scripts/otp.sh | 9 +- .config/sway/config | 5 + 4 files changed, 93 insertions(+), 73 deletions(-) diff --git a/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom b/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom index 480625a..c60bda4 100644 --- a/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom +++ b/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom @@ -7,12 +7,9 @@ key: "7", ): Disable, ( - modifiers: [ - Super, - Ctrl, - ], - key: "0", - ): MoveToLastWorkspace, + modifiers: [], + key: "Print", + ): Disable, ( modifiers: [ Super, @@ -20,44 +17,6 @@ ], key: "2", ): MoveToWorkspace(2), - ( - modifiers: [ - Super, - Ctrl, - ], - key: "8", - ): MoveToWorkspace(8), - ( - modifiers: [], - key: "Print", - ): Disable, - ( - modifiers: [ - Super, - Shift, - ], - key: "1", - ): Disable, - ( - modifiers: [ - Super, - Shift, - ], - key: "5", - ): Disable, - ( - modifiers: [ - Super, - ], - key: "p", - ): System(Screenshot), - ( - modifiers: [ - Super, - Shift, - ], - key: "4", - ): Disable, ( modifiers: [ Super, @@ -65,18 +24,6 @@ ], key: "3", ): Disable, - ( - modifiers: [ - Super, - ], - ): System(Launcher), - ( - modifiers: [ - Super, - Ctrl, - ], - key: "5", - ): MoveToWorkspace(5), ( modifiers: [ Super, @@ -84,6 +31,13 @@ ], key: "7", ): MoveToWorkspace(7), + ( + modifiers: [ + Super, + Ctrl, + ], + key: "0", + ): MoveToLastWorkspace, ( modifiers: [ Super, @@ -103,7 +57,35 @@ Super, Shift, ], - key: "2", + key: "8", + ): Disable, + ( + modifiers: [ + Super, + Shift, + ], + key: "4", + ): Disable, + ( + modifiers: [ + Super, + Ctrl, + ], + key: "4", + ): MoveToWorkspace(4), + ( + modifiers: [ + Super, + Shift, + ], + key: "1", + ): Disable, + ( + modifiers: [ + Super, + Shift, + ], + key: "9", ): Disable, ( modifiers: [ @@ -117,22 +99,27 @@ Super, Shift, ], + key: "2", + ): Disable, + ( + modifiers: [ + Super, + Ctrl, + ], key: "8", - ): Disable, + ): MoveToWorkspace(8), ( modifiers: [ Super, - Shift, + Ctrl, ], - key: "0", - ): Disable, + key: "5", + ): MoveToWorkspace(5), ( modifiers: [ Super, - Shift, ], - key: "9", - ): Disable, + ): System(Launcher), ( modifiers: [ Super, @@ -151,17 +138,25 @@ ( modifiers: [ Super, + Shift, ], - key: "n", - description: Some("New Session"), - ): Spawn(" zsh -c \"$HOME/.config/scripts/sessions.sh new\""), + key: "o", + description: Some("Get OTP"), + ): Spawn("zsh -c \"$HOME/.config/scripts/otp.sh\""), ( modifiers: [ Super, - Ctrl, + Shift, ], - key: "4", - ): MoveToWorkspace(4), + key: "5", + ): Disable, + ( + modifiers: [ + Super, + Shift, + ], + key: "0", + ): Disable, ( modifiers: [ Super, @@ -169,4 +164,17 @@ ], key: "9", ): MoveToWorkspace(9), -} \ No newline at end of file + ( + modifiers: [ + Super, + ], + key: "n", + description: Some("New Session"), + ): Spawn(" zsh -c \"$HOME/.config/scripts/sessions.sh new\""), + ( + modifiers: [ + Super, + ], + key: "p", + ): System(Screenshot), +} diff --git a/.config/nvim/lua/plugins/codecomapnion.lua b/.config/nvim/lua/plugins/codecomapnion.lua index f0e516d..2d4f9c0 100644 --- a/.config/nvim/lua/plugins/codecomapnion.lua +++ b/.config/nvim/lua/plugins/codecomapnion.lua @@ -35,7 +35,7 @@ return { name = "openai", schema = { model = { - default = "gpt-4o-mini", + default = "gpt-5-nano", }, }, env = { diff --git a/.config/scripts/otp.sh b/.config/scripts/otp.sh index d9f40f1..36f5d40 100755 --- a/.config/scripts/otp.sh +++ b/.config/scripts/otp.sh @@ -23,7 +23,7 @@ if [ $? -ne 0 ]; then exit 1 fi -accounts=$(ykman -d $YUBIKEY_SERIAL oath accounts list -p $password) +accounts=$(ykman -d $YUBIKEY_SERIAL oath accounts list -p $password | sort -f) # Create an array to hold the keys declare -a keys @@ -37,4 +37,11 @@ done <<<"$accounts" selection=$(printf "%s\n" "${keys[@]}" | wofi -dmenu -i -p "New Session" --columns 1) +if [[ $selection == "" ]]; then + echo "Selection dialog was cancelled." + exit 1 +fi + ykman -d $YUBIKEY_SERIAL oath accounts code $selection -p $password | cut -d' ' -f3 | wl-copy + +notify-send "copied $selection to Clipboard" diff --git a/.config/sway/config b/.config/sway/config index 44c3023..6a4c52e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -21,6 +21,7 @@ set $browser flatpak run io.gitlab.librewolf-community set $bitwarden flatpak run com.bitwarden.desktop set $menu wofi set $scripts "$HOME/.config/scripts" +set $otpScript "$HOME/.config/scripts/otp.sh" set $newScript "$HOME/.config/scripts/sessions.sh" set $next_or_new swaymsg -r -t get_workspaces | jq -r --arg OUTPUT $(swaymsg -t get_outputs -r | jq -r '.[] | select(.focused == true) | .name') '(. | (max_by(.num) | .num)) as $max | [.[] | select(.output == $OUTPUT)] | (max_by(.num) | .num) as $maxOutput | (.[] | select(.focused == true) | .num) as $current | if $maxOutput > $current then "next_on_output" else $max + 1 end' @@ -96,6 +97,10 @@ bindsym $mod+control+n exec swaync-client -t -sw bindsym $mod+n exec 'zsh -c ". $newScript new"' bindsym $mod+Shift+n exec 'zsh -c ". $newScript goland-new"' + # Start otp script + bindsym $mod+Shift+o exec 'zsh -c ". $otpScript"' + + # Audio Switch bindsym $mod+Shift+s exec 'bash -c ". $scripts/audioswitch.sh"'