dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit 12ccdfbe99dbd55a9c83a735d5ef263681812942 parent fd694e80a8b364c80dcfff25d0d982ab3365aa31 Author: maydayv7 <maydayv7@gmail.com> Date: Tue, 27 Feb 2024 21:56:53 +0530 feat: Hyprland Binds List
Diffstat:
| M | files/flake.nix | | | 14 | ++++++++++---- |
| A | files/hyprland/binds.pango | | | 53 | +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | files/hyprland/nwg/wrapper.css | | | 13 | +++++++++++++ |
| R | files/hyprland/waybar/style.css -> files/hyprland/waybar.css | | | 0 | |
| D | modules/gui/desktop/hyprland/README.md | | | 84 | ------------------------------------------------------------------------------- |
| M | modules/gui/desktop/hyprland/apps/bar.nix | | | 2 | +- |
| M | modules/gui/desktop/hyprland/apps/default.nix | | | 8 | ++++++-- |
| M | modules/gui/desktop/hyprland/settings/keybindings.nix | | | 2 | -- |
8 files changed, 83 insertions(+), 93 deletions(-)
diff --git a/files/flake.nix b/files/flake.nix @@ -73,14 +73,20 @@ # Hyprland WM hyprland = { + # Binds + binds = ./hyprland/binds.pango; + # Pyprland pypr = readFile ./hyprland/pypr.toml; - # NWG Shell - nwg.drawer = readFile ./hyprland/nwg/drawer.css; - # Waybar - waybar.style = readFile ./hyprland/waybar/style.css; + waybar = readFile ./hyprland/waybar.css; + + # NWG Shell + nwg = { + drawer = readFile ./hyprland/nwg/drawer.css; + wrapper = ./hyprland/nwg/wrapper.css; + }; }; # Pictures diff --git a/files/hyprland/binds.pango b/files/hyprland/binds.pango @@ -0,0 +1,53 @@ +<span size="10.75pt"> +<b><big>Keyboard Shortcuts</big></b> <b><big>Mouse Actions</big></b> +<i>$mod -> SUPER</i> <i>L</i> or <i>R -> Left/Right Click</i> + +<tt>$mod Q</tt> Quit application <tt>$mod L</tt> Move window +<tt>$mod P</tt> Pin window on all Workspaces <tt>$mod R</tt> Window resize +<tt>$mod M</tt> Maximize window <tt>$mod CTRL L</tt> Window resize +<tt>$mod SHIFT M</tt> Fullscreen window <tt>$mod SHIFT L</tt> Move window into application group +<tt>ALT Q</tt> Minimize window +<tt>ALT SHIFT Q</tt> Show minimized windows +<tt>$mod <i>ARROW</i></tt> Switch focus to window in desired direction +<tt>$mod SHIFT <i>ARROW</i></tt> Swap current window with window in desired direction +<tt>$mod Space</tt> Change window split direction + +<tt>ALT [CTRL] Tab</tt> Cycle [backwards] through open applications +<tt>ALT SHIFT Tab</tt> Activate urgent/last window +<tt>$mod SHIFT Space</tt> Toggle application grouping +<tt>$mod [SHIFT] Tab</tt> Cycle [backwards] through grouped applications +<tt>ALT `</tt> Show overview +<tt>ALT SHIFT `</tt> Show overview with every open application +<tt>ALT <i>ARROW</i></tt> Switch to window in desired direction in overview + +<tt>$mod <i>NUM</i></tt> Create workspace '<i>NUM</i>' +<tt>$mod SHIFT <i>NUM</i></tt> Move window to workspace '<i>NUM</i>' +<tt>$mod ,<i> or </i>.</tt> Move to previous/next workspace +<tt>$mod `</tt> Toggle special workspace to stash windows +<tt>$mod SHIFT `</tt> Move window to/from special workspace stash +<tt>$mod SHIFT ,<i> or </i>.</tt> Move window to previous/next workspace +<tt>$mod ALT ,<i> or </i>.</tt> Move focus to left/right monitor +<tt>$mod SHIFT ALT ,<i> or </i>.</tt> Move workspace to left/right monitor + +<tt>Print</tt> Take Screenshot of area +<tt>CTRL Print</tt> Take Screenshot of window +<tt>SHIFT Print</tt> Take Screenshot of screen +<tt>$mod =<i> or </i>-</tt> Zoom in/out +<tt>$mod ;<i> or </i>:</tt> Toggle window float for one/all window(s) +<tt>$mod C</tt> Center floating window +<tt>$mod L<i> or </i>Esc</tt> Lock screen / System Logoff + +<tt>$mod ?</tt> Show this page +<tt>$mod A</tt> Application Drawer +<tt>$mod SHIFT C</tt> Color Picker +<tt>$mod D</tt> Monitor Configuration +<tt>$mod F</tt> File Manager +<tt>$mod T</tt> Terminal +<tt>$mod Shift T</tt> Toggle Terminal in Quake mode +<tt>$mod V</tt> Toggle Clipboard +<tt>$mod W</tt> Web Browser +<tt>$mod Return</tt> Task Manager +<tt>$mod N</tt> Show received notifications in order +<tt>$mod /</tt> Application Launcher +<tt>Calculator</tt> Calculator +</span> diff --git a/files/hyprland/nwg/wrapper.css b/files/hyprland/nwg/wrapper.css @@ -0,0 +1,13 @@ +* { + background: none; + border-radius: 10px; +} + +window { + background-color: rgba(0, 0, 0, 0.3); +} + +#box-inner { + background-color: transparent; + padding: 0 20px 0 20px; +} diff --git a/files/hyprland/waybar/style.css b/files/hyprland/waybar.css diff --git a/modules/gui/desktop/hyprland/README.md b/modules/gui/desktop/hyprland/README.md @@ -1,84 +0,0 @@ -## Shortcuts - -| Keybind | Dispatcher | Command | Comments | -| -------------------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------- | -| <kbd>$mod Q</kbd> | killactive | | Quit application | -| <kbd>$mod P</kbd> | pin | | Pin window on all Workspaces | -| <kbd>$mod M</kbd> | fullscreen | 1 | Maximize window | -| <kbd>$mod SHIFT M</kbd> | fullscreen | | Fullscreen window | -| <kbd>ALT Q</kbd> | hych:minimize | | Minimize window | -| <kbd>ALT SHIFT Q</kbd> | hych:toggle_restore_window | | Show minimized windows | -| <kbd>$mod left</kbd> | movefocus | l | Switch focus to left window | -| <kbd>$mod right</kbd> | movefocus | r | Switch focus to right window | -| <kbd>$mod up</kbd> | movefocus | u | Switch focus to up window | -| <kbd>$mod down</kbd> | movefocus | d | Switch focus to down window | -| <kbd>$mod SHIFT left</kbd> | swapwindow | l | Swap current window with left window | -| <kbd>$mod SHIFT right</kbd> | swapwindow | r | Swap current window with right window | -| <kbd>$mod SHIFT up</kbd> | swapwindow | u | Swap current window with up window | -| <kbd>$mod SHIFT down</kbd> | swapwindow | d | Swap current window with down window | -| <kbd>$mod Space</kbd> | togglesplit | | Change window split direction | -| <kbd>$mod SHIFT Space</kbd> | togglegroup | | Toggle application grouping | -| <kbd>$mod Tab</kbd> | changegroupactive | f | Cycle through grouped applications | -| <kbd>$mod SHIFT Tab</kbd> | changegroupactive | b | Cycle through grouped applications backwards | -| <kbd>$mod semicolon</kbd> | togglefloating | | Toggle floating window | -| <kbd>$mod apostrophe</kbd> | workspaceopt | allfloat | Toggle floating all windows | -| <kbd>$mod C</kbd> | centerwindow | | Center window | -| <kbd>ALT Tab</kbd> | cyclenext | | Cycle through open applications | -| <kbd>ALT Tab</kbd> | bringactivetotop | | | -| <kbd>ALT SHIFT Tab</kbd> | focusurgentorlast | | Activate urgent/last window | -| <kbd>ALT SHIFT Tab</kbd> | bringactivetotop | | | -| <kbd>ALT CTRL Tab</kbd> | cyclenext | prev | Cycle through grouped applications backward | -| <kbd>ALT CTRL Tab</kbd> | bringactivetotop | | | -| <kbd>ALT grave</kbd> | hycov:toggleoverview | | Show overview | -| <kbd>ALT SHIFT grave</kbd> | hycov:toggleoverview | forceall | Show overview with every open application | -| <kbd>ALT left</kbd> | hycov:movefocus | l | Switch to left window in overview | -| <kbd>ALT right</kbd> | hycov:movefocus | r | Switch to right window in overview | -| <kbd>ALT up</kbd> | hycov:movefocus | u | Switch to up window in overview | -| <kbd>ALT down</kbd> | hycov:movefocus | d | Switch to down window in overview | -| <kbd>$mod SHIFT slash</kbd> | exec | xdg-open ./README.md | Show this page | -| <kbd>$mod comma</kbd> | workspace | m-1 | Move to previous workspace | -| <kbd>$mod period</kbd> | workspace | m+1 | Move to next workspace | -| <kbd>$mod SHIFT grave</kbd> | exec | pypr toggle_special stash | Move window to/from special workspace stash | -| <kbd>$mod grave</kbd> | togglespecialworkspace | stash | Toggle special workspace to stash windows | -| <kbd>$mod SHIFT comma</kbd> | movetoworkspace | m-1 | Move window to previous workspace | -| <kbd>$mod SHIFT period</kbd> | movetoworkspace | m+1 | Move window to next workspace | -| <kbd>$mod ALT comma</kbd> | focusmonitor | l | Move focus to left monitor | -| <kbd>$mod ALT period</kbd> | focusmonitor | r | Move focus to right monitor | -| <kbd>$mod SHIFT ALT comma</kbd> | movecurrentworkspacetomonitor | l | Move workspace to left monitor | -| <kbd>$mod SHIFT ALT period</kbd> | movecurrentworkspacetomonitor | r | Move workspace to right monitor | -| <kbd>$mod L</kbd> | exec | loginctl lock-session | Lock screen | -| <kbd>Print</kbd> | exec | grimblast --notify copysave area | Take Screenshot of area | -| <kbd>CTRL Print</kbd> | exec | grimblast --notify --cursor copysave output | Take Screenshot of window | -| <kbd>SHIFT Print</kbd> | exec | grimblast --notify --cursor copysave screen | Take Screenshot of screen | -| <kbd>$mod equal</kbd> | exec | pypr zoom "$(hyprctl getoption misc:cursor_zoom_factor \| grep float \| awk '{print $2 + 1}')" | Zoom in | -| <kbd>$mod minus</kbd> | exec | pypr zoom "$(hyprctl getoption misc:cursor_zoom_factor \| grep float \| awk '{print $2 - 1}')" | Zoom out | -| <kbd>$mod 1</kbd> | workspace | num | Create workspace 'num' | -| <kbd>$mod SHIFT 1</kbd> | movetoworkspace | num | Move window to workspace 'num' | -| <kbd>$mod A</kbd> | exec | nwg-drawer | Application Drawer | -| <kbd>$mod SHIFT C</kbd> | exec | hyprpicker -arf hex | Color Picker | -| <kbd>$mod D</kbd> | exec | pypr toggle displays | Monitor Configuration | -| <kbd>$mod F</kbd> | exec | thunar | File Manager | -| <kbd>$mod T</kbd> | exec | kitty | Terminal | -| <kbd>$mod Shift T</kbd> | exec | pypr toggle term | Toggle Terminal in Quake mode | -| <kbd>$mod V</kbd> | exec | pypr toggle clip | Toggle Clipboard | -| <kbd>$mod W</kbd> | exec | firefox | Web Browser | -| <kbd>$mod Return</kbd> | exec | missioncenter | Task Manager | -| <kbd>$mod N</kbd> | exec | dunstctl history-pop | Show received notifications in order | -| <kbd>$mod slash</kbd> | exec | ulauncher-toggle | Application Launcher | -| <kbd>XF86Calculator</kbd> | exec | qalculate-gtk | Calculator | -| <kbd>$mod Escape</kbd> | exec | wlogout -p layer-shell | System Logoff | -| <kbd>XF86AudioPlay</kbd> | exec | playerctl play-pause | Play/Pause Media | -| <kbd>XF86AudioPrev</kbd> | exec | playerctl previous | Previous Media | -| <kbd>XF86AudioNext</kbd> | exec | playerctl next | Next Media | -| <kbd>XF86AudioMute</kbd> | exec | wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle | Mute Speakers | -| <kbd>XF86AudioMicMute</kbd> | exec | wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle | Mute Microphone | -| <kbd>XF86AudioRaiseVolume</kbd> | exec | wpctl set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 5%+ | Increase Volume | -| <kbd>XF86AudioLowerVolume</kbd> | exec | wpctl set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 5%- | Decrease Volume | -| <kbd>XF86MonBrightnessUp</kbd> | exec | brillo -u 300000 -A 5 | Increase Brightness | -| <kbd>XF86MonBrightnessDown</kbd> | exec | brillo -u 300000 -U 5 | Decrease Brightness | -| <kbd>$mod mouse:272</kbd> | movewindow | | Move window | -| <kbd>$mod mouse:273</kbd> | resizewindow | | Window resize | -| <kbd>$mod CTRL mouse:272</kbd> | resizewindow | | Window resize | -| <kbd>$mod SHIFT mouse:272</kbd> | moveintogroup | | Move window into application group | - -Created using [`hyprkeys`](https://github.com/hyprland-community/Hyprkeys) diff --git a/modules/gui/desktop/hyprland/apps/bar.nix b/modules/gui/desktop/hyprland/apps/bar.nix @@ -37,7 +37,7 @@ in rec { enable = true; systemd.enable = true; package = pkgs.wayworld.waybar; - inherit (files.hyprland.waybar) style; + style = files.hyprland.waybar; # Panel settings = [ diff --git a/modules/gui/desktop/hyprland/apps/default.nix b/modules/gui/desktop/hyprland/apps/default.nix @@ -31,7 +31,6 @@ in { environment.systemPackages = with pkgs; [ # Apps - apostrophe celluloid custom.desktop-icons font-manager @@ -44,6 +43,7 @@ in { custom.nwg-clipman nwg-displays custom.nwg-drawer + nwg-wrapper unstable.overskride playerctl qalculate-gtk @@ -88,7 +88,7 @@ in { directory = ["thunar.desktop"]; image = ["org.gnome.Shotwell-Viewer.desktop"]; magnet = ["transmission-gtk.desktop"]; - markdown = ["org.gnome.gitlab.somas.Apostrophe.desktop"]; + markdown = ["geany.desktop"]; pdf = ["atril.desktop"]; text = ["geany.desktop"]; video = ["io.github.celluloid_player.Celluloid.desktop"]; @@ -96,6 +96,7 @@ in { # Shortcuts wayland.windowManager.hyprland.settings.bind = [ + "$mod SHIFT, slash, exec, pkill -f -1 nwg-wrapper" # Binds List "$mod, A, exec, nwg-drawer" "$mod SHIFT, C, exec, hyprpicker -arf hex" "$mod, D, exec, pypr toggle displays" @@ -122,6 +123,9 @@ in { # Clipboard "wl-paste --type text --watch cliphist store" "wl-paste --type image --watch cliphist store" + + # Binds List + (with files.hyprland; "nwg-wrapper -t ${binds} -c ${nwg.wrapper} -il 3 -sv 1") ]; # Utilities diff --git a/modules/gui/desktop/hyprland/settings/keybindings.nix b/modules/gui/desktop/hyprland/settings/keybindings.nix @@ -17,8 +17,6 @@ in { env = ["SLURP_ARGS, -dc ${base0D}"]; # Screengrab bind = [ - ("$mod SHIFT, slash, exec, xdg-open " + ../README.md) - # Compositor Commands "$mod, Q, killactive," "$mod, P, pin"