This commit is contained in:
sankalp committed 2024-10-18 09:57:41 +05:45
1 parent 68e4d6ba79
commit 4e8e5bd4cc
9 files changed
+308 -48

No files matched your search

+30 -13
View File
@@ -8,6 +8,12 @@ $mainMod = SUPER
$scriptsDir = $HOME/dotfiles/hypr/scripts
$RunCMD = $scriptsDir/RunCMD.sh
# Lock indicators
bindlni = , Caps_Lock, exec, ags -r 'updateCapsLock();'
bindlnri = , Caps_Lock, exec, ags -r 'updateCapsLock();'
bindlni = , Num_Lock, exec, ags -r 'updateNumLock();'
bindlnri = , Num_Lock, exec, ags -r 'updateNumLock();'
# Categories (for script)
#! @actions: Actions
#! @tools: Tools
@@ -16,6 +22,10 @@ $RunCMD = $scriptsDir/RunCMD.sh
#! @workspaces: Workspaces
#! @misc: Misc
# Testing
bind = Alt, f12, exec, notify-send 'Test notification' "Here's a really long message to test truncation and wrapping\nYou can middle click or flick this notification to dismiss it!" -a 'Shell' -A "Test1=I got it!" -A "Test2=Another action"
bind = Alt, Equal, exec, notify-send 'hmm' ${SLURP_ARGS}
bindr = ALT, R, exec, ags -r 'ReloadCSS();'
# Applications
bind = ALT SHIFT,Return, exec, kitty --title Kitty --single-instance #! @description: "Terminal Float"; @apps;
@@ -32,27 +42,34 @@ bind = SHIFT ALT,W, exec, python -O $scriptsDir/wallpaper.py -R #! @desc
bind = $mainMod CTRL, L, exec, pidof hyprlock || hyprlock -q #! @description: "Lock screen"; @actions;
bind = $mainMod CTRL, P, exec, systemctl poweroff #! @description: "ShutDown"; @actions;
bind = $mainMod CTRL, R, exec, systemctl reboot #! @description: "Restart"; @actions;
bind = $mainMod, Z, exec, $scriptsDir/ScreenShot.sh #! @description: "Screenshot"; @actions;
bind = ALT SHIFT, S, exec, $scriptsDir/ScreenShot.sh --window #! @description: "Window screenshot"; @actions;
bind = ,Print, exec, $scriptsDir/ScreenShot.sh --active #! @description: "Active screen screenshot"; @actions;
bind = $mainMod, o, exec, $scriptsDir/ScreenShot.sh #! @description: "Screenshot"; @actions;
# bind = ALT SHIFT, S, exec, $scriptsDir/ScreenShot.sh --window #! @description: "Window screenshot"; @actions;
# bind = ,Print, exec, $scriptsDir/ScreenShot.sh --active #! @description: "Active screen screenshot"; @actions;
bind = ALT SHIFT, R, exec, pkill ags ; ags #! @description: "Reload AGS" @actions;
binde = Alt, Tab, exec, ags -r 'if (App.getWindow("switcher").visible) globalThis.moveSwitcherFocus?.(); else globalThis.openSwitcher();'
# bind = Ctrl+Alt, Tab, exec, ags -t 'switcher'
bind = ALT, t, exec, ~/fabric/start
bind = $mainMod,Z, exec, ags -r 'recorder.screenshot()'
bind = $mainMod,p, exec, hyprshot -m region
bind = , Print, exec, ags -r 'recorder.screenshot(true)'
bind = $mainMod, R, exec, ags -r 'recorder.start()'
bind = Super, y, exec, XDG_CURRENT_DESKTOP="gnome" gnome-control-center
# Tools
bind = $mainMod, D, exec, ags -r "toggleAppsWindow()" #! @description: "App Launcher"; @tools;
bind = $mainMod SHIFT, Z, exec, ags -r "toggleMediaWindow()" #! @description: "Players"; @tools;
bind = $mainMod, R, exec, ags -t sidebar #! @description: "rightbar"; @tools;
bind = $mainMod, L, exec, ags -t sideleft #! @description: "leftbar"; @tools;
bind = $mainMod, PERIOD, exec, ags -r "OpenEmojiPicker()" #! @description: "Emoji Picker"; @tools;
bind = $mainMod, V, exec, ags -t "cliphist" #! @description: "Clipboard history"; @tools;
# bind = $mainMod, D, exec, ags -r "toggleAppsWindow()" #! @description: "App Launcher"; @tools;
# bind = $mainMod SHIFT, Z, exec, ags -r "toggleMediaWindow()" #! @description: "Players"; @tools;
# bind = $mainMod, R, exec, ags -t sidebar #! @description: "rightbar"; @tools;
# bind = $mainMod, L, exec, ags -t sideleft #! @description: "leftbar"; @tools;
# bind = $mainMod, PERIOD, exec, ags -r "OpenEmojiPicker()" #! @description: "Emoji Picker"; @tools;
# bind = $mainMod, V, exec, ags -t "cliphist" #! @description: "Clipboard history"; @tools;
bind = $mainMod, W, exec, ags -r "OpenSettings('wallpaper')" #! @description: "Change wallpaper"; @tools;
bind = $mainMod, I, exec, ags -r 'OpenSettings()' #! @description: "Setting"; @tools;
bind = $mainMod, SLASH, exec, ags -t cheatsheet #! @description: "List of keybindings"; @tools;
bind = $mainMod, V, exec, ags -r 'launcher.open(":ch")'
bind = $mainMod, PERIOD, exec, ags -r 'launcher.open(":em")'
bind = $mainMod, D, exec, ags -t launcher
# Misc
bind = $mainMod ALT, P, submap, passthru #! @description: "Passthrough mainMod key to Virtual Machine"; @misc;
submap = passthru
bind = $mainMod ALT, Escape, submap, reset #! @description: "Cancel passthrough"; @misc;
submap = reset