updates
This commit is contained in:
parent
dc4f3598fc
commit
243dad55fc
4 changed files with 93 additions and 73 deletions
|
|
@ -7,12 +7,9 @@
|
||||||
key: "7",
|
key: "7",
|
||||||
): Disable,
|
): Disable,
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [],
|
||||||
Super,
|
key: "Print",
|
||||||
Ctrl,
|
): Disable,
|
||||||
],
|
|
||||||
key: "0",
|
|
||||||
): MoveToLastWorkspace,
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -20,44 +17,6 @@
|
||||||
],
|
],
|
||||||
key: "2",
|
key: "2",
|
||||||
): MoveToWorkspace(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: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -65,18 +24,6 @@
|
||||||
],
|
],
|
||||||
key: "3",
|
key: "3",
|
||||||
): Disable,
|
): Disable,
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
],
|
|
||||||
): System(Launcher),
|
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Ctrl,
|
|
||||||
],
|
|
||||||
key: "5",
|
|
||||||
): MoveToWorkspace(5),
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -84,6 +31,13 @@
|
||||||
],
|
],
|
||||||
key: "7",
|
key: "7",
|
||||||
): MoveToWorkspace(7),
|
): MoveToWorkspace(7),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Ctrl,
|
||||||
|
],
|
||||||
|
key: "0",
|
||||||
|
): MoveToLastWorkspace,
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -103,7 +57,35 @@
|
||||||
Super,
|
Super,
|
||||||
Shift,
|
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,
|
): Disable,
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
|
|
@ -117,22 +99,27 @@
|
||||||
Super,
|
Super,
|
||||||
Shift,
|
Shift,
|
||||||
],
|
],
|
||||||
|
key: "2",
|
||||||
|
): Disable,
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Ctrl,
|
||||||
|
],
|
||||||
key: "8",
|
key: "8",
|
||||||
): Disable,
|
): MoveToWorkspace(8),
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
Shift,
|
Ctrl,
|
||||||
],
|
],
|
||||||
key: "0",
|
key: "5",
|
||||||
): Disable,
|
): MoveToWorkspace(5),
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
Shift,
|
|
||||||
],
|
],
|
||||||
key: "9",
|
): System(Launcher),
|
||||||
): Disable,
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -151,17 +138,25 @@
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
Shift,
|
||||||
],
|
],
|
||||||
key: "n",
|
key: "o",
|
||||||
description: Some("New Session"),
|
description: Some("Get OTP"),
|
||||||
): Spawn(" zsh -c \"$HOME/.config/scripts/sessions.sh new\""),
|
): Spawn("zsh -c \"$HOME/.config/scripts/otp.sh\""),
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
Ctrl,
|
Shift,
|
||||||
],
|
],
|
||||||
key: "4",
|
key: "5",
|
||||||
): MoveToWorkspace(4),
|
): Disable,
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Shift,
|
||||||
|
],
|
||||||
|
key: "0",
|
||||||
|
): Disable,
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -169,4 +164,17 @@
|
||||||
],
|
],
|
||||||
key: "9",
|
key: "9",
|
||||||
): MoveToWorkspace(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),
|
||||||
}
|
}
|
||||||
|
|
@ -35,7 +35,7 @@ return {
|
||||||
name = "openai",
|
name = "openai",
|
||||||
schema = {
|
schema = {
|
||||||
model = {
|
model = {
|
||||||
default = "gpt-4o-mini",
|
default = "gpt-5-nano",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
env = {
|
env = {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Create an array to hold the keys
|
||||||
declare -a keys
|
declare -a keys
|
||||||
|
|
@ -37,4 +37,11 @@ done <<<"$accounts"
|
||||||
|
|
||||||
selection=$(printf "%s\n" "${keys[@]}" | wofi -dmenu -i -p "New Session" --columns 1)
|
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
|
ykman -d $YUBIKEY_SERIAL oath accounts code $selection -p $password | cut -d' ' -f3 | wl-copy
|
||||||
|
|
||||||
|
notify-send "copied $selection to Clipboard"
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ set $browser flatpak run io.gitlab.librewolf-community
|
||||||
set $bitwarden flatpak run com.bitwarden.desktop
|
set $bitwarden flatpak run com.bitwarden.desktop
|
||||||
set $menu wofi
|
set $menu wofi
|
||||||
set $scripts "$HOME/.config/scripts"
|
set $scripts "$HOME/.config/scripts"
|
||||||
|
set $otpScript "$HOME/.config/scripts/otp.sh"
|
||||||
set $newScript "$HOME/.config/scripts/sessions.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'
|
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+n exec 'zsh -c ". $newScript new"'
|
||||||
bindsym $mod+Shift+n exec 'zsh -c ". $newScript goland-new"'
|
bindsym $mod+Shift+n exec 'zsh -c ". $newScript goland-new"'
|
||||||
|
|
||||||
|
# Start otp script
|
||||||
|
bindsym $mod+Shift+o exec 'zsh -c ". $otpScript"'
|
||||||
|
|
||||||
|
|
||||||
# Audio Switch
|
# Audio Switch
|
||||||
bindsym $mod+Shift+s exec 'bash -c ". $scripts/audioswitch.sh"'
|
bindsym $mod+Shift+s exec 'bash -c ". $scripts/audioswitch.sh"'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue