update
This commit is contained in:
parent
e14d6ac38a
commit
664cb88ef8
4 changed files with 123 additions and 99 deletions
|
|
@ -1,50 +1,4 @@
|
||||||
{
|
{
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Shift,
|
|
||||||
],
|
|
||||||
key: "7",
|
|
||||||
): Disable,
|
|
||||||
(
|
|
||||||
modifiers: [],
|
|
||||||
key: "Print",
|
|
||||||
): Disable,
|
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Ctrl,
|
|
||||||
],
|
|
||||||
key: "2",
|
|
||||||
): MoveToWorkspace(2),
|
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Shift,
|
|
||||||
],
|
|
||||||
key: "3",
|
|
||||||
): Disable,
|
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Ctrl,
|
|
||||||
],
|
|
||||||
key: "7",
|
|
||||||
): MoveToWorkspace(7),
|
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Ctrl,
|
|
||||||
],
|
|
||||||
key: "0",
|
|
||||||
): MoveToLastWorkspace,
|
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Ctrl,
|
|
||||||
],
|
|
||||||
key: "6",
|
|
||||||
): MoveToWorkspace(6),
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -57,22 +11,16 @@
|
||||||
Super,
|
Super,
|
||||||
Shift,
|
Shift,
|
||||||
],
|
],
|
||||||
key: "8",
|
key: "y",
|
||||||
): Disable,
|
description: Some("Get OTP"),
|
||||||
(
|
): Spawn("zsh -c \"$HOME/.config/scripts/ssh.sh\""),
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Shift,
|
|
||||||
],
|
|
||||||
key: "4",
|
|
||||||
): Disable,
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
Ctrl,
|
Ctrl,
|
||||||
],
|
],
|
||||||
key: "4",
|
key: "2",
|
||||||
): MoveToWorkspace(4),
|
): MoveToWorkspace(2),
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -80,13 +28,6 @@
|
||||||
],
|
],
|
||||||
key: "1",
|
key: "1",
|
||||||
): Disable,
|
): Disable,
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Shift,
|
|
||||||
],
|
|
||||||
key: "9",
|
|
||||||
): Disable,
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -99,22 +40,15 @@
|
||||||
Super,
|
Super,
|
||||||
Shift,
|
Shift,
|
||||||
],
|
],
|
||||||
key: "2",
|
key: "5",
|
||||||
): Disable,
|
): Disable,
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
Ctrl,
|
Shift,
|
||||||
],
|
],
|
||||||
key: "8",
|
key: "7",
|
||||||
): MoveToWorkspace(8),
|
): Disable,
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Ctrl,
|
|
||||||
],
|
|
||||||
key: "5",
|
|
||||||
): MoveToWorkspace(5),
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -127,6 +61,84 @@
|
||||||
],
|
],
|
||||||
key: "3",
|
key: "3",
|
||||||
): MoveToWorkspace(3),
|
): MoveToWorkspace(3),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Shift,
|
||||||
|
],
|
||||||
|
key: "8",
|
||||||
|
): Disable,
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Ctrl,
|
||||||
|
],
|
||||||
|
key: "6",
|
||||||
|
): MoveToWorkspace(6),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Shift,
|
||||||
|
],
|
||||||
|
key: "4",
|
||||||
|
): Disable,
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
],
|
||||||
|
key: "n",
|
||||||
|
description: Some("New Session"),
|
||||||
|
): Spawn(" zsh -c \"$HOME/.config/scripts/sessions.sh new\""),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Shift,
|
||||||
|
],
|
||||||
|
key: "9",
|
||||||
|
): Disable,
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Ctrl,
|
||||||
|
],
|
||||||
|
key: "4",
|
||||||
|
): MoveToWorkspace(4),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Shift,
|
||||||
|
],
|
||||||
|
key: "3",
|
||||||
|
): Disable,
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Ctrl,
|
||||||
|
],
|
||||||
|
key: "5",
|
||||||
|
): MoveToWorkspace(5),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Ctrl,
|
||||||
|
],
|
||||||
|
key: "9",
|
||||||
|
): MoveToWorkspace(9),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Ctrl,
|
||||||
|
],
|
||||||
|
key: "8",
|
||||||
|
): MoveToWorkspace(8),
|
||||||
|
(
|
||||||
|
modifiers: [
|
||||||
|
Super,
|
||||||
|
Shift,
|
||||||
|
],
|
||||||
|
key: "p",
|
||||||
|
description: Some("Grim Screenshot"),
|
||||||
|
): Spawn("zsh -c \"grim -g '$(slurp)' - | wl-copy\""),
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -134,7 +146,7 @@
|
||||||
],
|
],
|
||||||
key: "n",
|
key: "n",
|
||||||
description: Some("New Goland Session"),
|
description: Some("New Goland Session"),
|
||||||
): Spawn(" zsh -c \"$HOME/.config/scripts/sessions.sh goland-new\""),
|
): Spawn("zsh -c \"$HOME/.config/scripts/sessions.sh goland-new\""),
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -143,21 +155,6 @@
|
||||||
key: "o",
|
key: "o",
|
||||||
description: Some("Get OTP"),
|
description: Some("Get OTP"),
|
||||||
): Spawn("zsh -c \"$HOME/.config/scripts/otp.sh\""),
|
): Spawn("zsh -c \"$HOME/.config/scripts/otp.sh\""),
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Shift,
|
|
||||||
],
|
|
||||||
key: "y",
|
|
||||||
description: Some("Get OTP"),
|
|
||||||
): Spawn("zsh -c \"$HOME/.config/scripts/ssh.sh\""),
|
|
||||||
(
|
|
||||||
modifiers: [
|
|
||||||
Super,
|
|
||||||
Shift,
|
|
||||||
],
|
|
||||||
key: "5",
|
|
||||||
): Disable,
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
|
@ -170,19 +167,20 @@
|
||||||
Super,
|
Super,
|
||||||
Ctrl,
|
Ctrl,
|
||||||
],
|
],
|
||||||
key: "9",
|
key: "0",
|
||||||
): MoveToWorkspace(9),
|
): MoveToLastWorkspace,
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
Ctrl,
|
||||||
],
|
],
|
||||||
key: "n",
|
key: "7",
|
||||||
description: Some("New Session"),
|
): MoveToWorkspace(7),
|
||||||
): Spawn(" zsh -c \"$HOME/.config/scripts/sessions.sh new\""),
|
|
||||||
(
|
(
|
||||||
modifiers: [
|
modifiers: [
|
||||||
Super,
|
Super,
|
||||||
|
Shift,
|
||||||
],
|
],
|
||||||
key: "p",
|
key: "2",
|
||||||
): System(Screenshot),
|
): Disable,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,12 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/zen-mode.nvim",
|
"folke/zen-mode.nvim",
|
||||||
opts = {},
|
opts = {
|
||||||
|
window = {
|
||||||
|
backdrop = 0.95,
|
||||||
|
width = 180,
|
||||||
|
height = 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -176,6 +176,24 @@ scratch() {
|
||||||
tmux attach-session -t "$name"
|
tmux attach-session -t "$name"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test() {
|
||||||
|
|
||||||
|
menu_items=$(
|
||||||
|
i=1
|
||||||
|
local items=()
|
||||||
|
tmux list-windows -F '#{window_name}' |
|
||||||
|
while read -r window_name; do
|
||||||
|
items+=("$(printf '%s %d "select-window -t %s"' "$window_name" "$i" "$window_name")")
|
||||||
|
i=$((i + 1))
|
||||||
|
done
|
||||||
|
printf '%s\n' "${items[@]}"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Execute the command using tmux command-prompt
|
||||||
|
printf "tmux display-menu -x 20 -y 8 $(printf $menu_items)"
|
||||||
|
eval $(printf "tmux display-menu -x 20 -y 8 $(printf $menu_items)")
|
||||||
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
new) new $2 ;;
|
new) new $2 ;;
|
||||||
switch) switch ;;
|
switch) switch ;;
|
||||||
|
|
@ -185,5 +203,6 @@ notes) notes ;;
|
||||||
popup) popup ;;
|
popup) popup ;;
|
||||||
scratch) scratch ;;
|
scratch) scratch ;;
|
||||||
goland-new) goland-new $2 ;;
|
goland-new) goland-new $2 ;;
|
||||||
|
test) test ;;
|
||||||
*) echo "Please enter an action" ;;
|
*) echo "Please enter an action" ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,7 @@ required_packages_pacman:
|
||||||
- libfido2
|
- libfido2
|
||||||
- yubikey-manager
|
- yubikey-manager
|
||||||
- zenity
|
- zenity
|
||||||
|
- proton-vpn-gtk-app
|
||||||
|
|
||||||
flatpak_remote:
|
flatpak_remote:
|
||||||
- { name: "flathub", url: "https://dl.flathub.org/repo/flathub.flatpakrepo" }
|
- { name: "flathub", url: "https://dl.flathub.org/repo/flathub.flatpakrepo" }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue