This commit is contained in:
DeveloperDurp 2025-08-24 07:41:17 -05:00
parent dc4f3598fc
commit 243dad55fc
4 changed files with 93 additions and 73 deletions

View file

@ -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),
}
(
modifiers: [
Super,
],
key: "n",
description: Some("New Session"),
): Spawn(" zsh -c \"$HOME/.config/scripts/sessions.sh new\""),
(
modifiers: [
Super,
],
key: "p",
): System(Screenshot),
}

View file

@ -35,7 +35,7 @@ return {
name = "openai",
schema = {
model = {
default = "gpt-4o-mini",
default = "gpt-5-nano",
},
},
env = {

View file

@ -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"

View file

@ -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"'