Compare commits
No commits in common. "9a975598679061e5e143d177b813c052fd359ebb" and "493e552cded3429d9be36220e3ebc9fddaf6c241" have entirely different histories.
9a97559867
...
493e552cde
3 changed files with 2 additions and 44 deletions
|
@ -42,7 +42,6 @@ with lib; let
|
|||
walker = "${config.home-manager.users.${config.custom.username}.programs.walker.package}/bin/walker";
|
||||
waydroid = "${pkgs.waydroid}/bin/waydroid";
|
||||
window = config.home-manager.users.${config.custom.username}.home.file.".local/bin/window".source;
|
||||
workspace = config.home-manager.users.${config.custom.username}.home.file.".local/bin/workspace".source;
|
||||
zoom = config.home-manager.users.${config.custom.username}.home.file.".local/bin/zoom".source;
|
||||
|
||||
cfg = config.custom.desktops.hyprland.binds;
|
||||
|
@ -142,8 +141,6 @@ in {
|
|||
(key "Escape" "Super" "togglefloating" null)
|
||||
(key "Escape" "Super+Alt" "exec" "lifx state --color red")
|
||||
(key "Escape" "Super+Shift" "centerwindow" null)
|
||||
(key "Grave" "Super" "togglespecialworkspace" "scratchpad")
|
||||
(key "Grave" "Super+Shift" "movetoworkspacesilent" "special:scratchpad")
|
||||
(key "Left" "Super" "movewindow" "l")
|
||||
(key "Left" "Super+Alt" "exec" "${left} --scroll kensington-orbit-wireless-tb-mouse")
|
||||
(key "Left" "Super+Shift" "movewindoworgroup" "l")
|
||||
|
@ -176,7 +173,7 @@ in {
|
|||
"--expression '^Picture.in.[Pp]icture$'"
|
||||
"--workspace special:pip"
|
||||
]))
|
||||
(key "Space" "Super" "exec" workspace)
|
||||
(key "Space" "Super" "togglespecialworkspace" "scratchpad")
|
||||
(key "Space" "Super+Ctrl+Shift" "exec" (with config.custom;
|
||||
concatStringsSep " " [
|
||||
"${window} move"
|
||||
|
@ -185,6 +182,7 @@ in {
|
|||
"'^Picture.in.[Pp]icture$'"
|
||||
"${toString (gap + border)},${toString (gap + border)}"
|
||||
]))
|
||||
(key "Space" "Super+Shift" "movetoworkspacesilent" "special:scratchpad")
|
||||
(key "Tab" "Super" "cyclenext" "tiled")
|
||||
(key "Tab" "Super+Shift" "alterzorder" "top")
|
||||
(key "Tab" "Super+Shift" "cyclenext" "floating")
|
||||
|
|
|
@ -177,17 +177,9 @@ in {
|
|||
])
|
||||
(bash "window" [
|
||||
argc
|
||||
coreutils
|
||||
hyprland
|
||||
jq
|
||||
])
|
||||
(bash "workspace" [
|
||||
argc
|
||||
coreutils
|
||||
hyprland
|
||||
jq
|
||||
libnotify
|
||||
])
|
||||
(bash "zoom" [
|
||||
argc
|
||||
bc
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
# @describe Wrapper for toggling last special workspace
|
||||
#
|
||||
# https://github.com/sigoden/argc
|
||||
|
||||
# @meta combine-shorts
|
||||
# @option -f --file=`_default_file` File to save last special workspace
|
||||
|
||||
_default_file() {
|
||||
echo "/tmp/workspace"
|
||||
}
|
||||
|
||||
eval "$(argc --argc-eval "$0" "$@")"
|
||||
|
||||
# Get current special workspace from active monitor, empty if not toggled
|
||||
workspace="$(hyprctl -j monitors | jq -r ".[] | select(.focused == true).specialWorkspace.name")"
|
||||
|
||||
# If empty, use saved file
|
||||
if ! [[ "$workspace" ]] && [[ -f "${argc_file:-}" ]]; then
|
||||
workspace="$(cat "${argc_file:-}")"
|
||||
fi
|
||||
|
||||
if [[ "$workspace" ]]; then
|
||||
# Toggle workspace
|
||||
hyprctl dispatch togglespecialworkspace "${workspace#special:*}" # Strip prefix
|
||||
|
||||
# Save last workspace
|
||||
echo "$workspace" > "${argc_file:-}"
|
||||
else
|
||||
notify-send "> workspace" "Last workspace not yet saved"
|
||||
fi
|
Loading…
Add table
Reference in a new issue