Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions HyprV/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,20 @@ windowrulev2 = opacity 0.8 0.6,class:^(wofi)$
$mainMod = SUPER

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, kitty #open the terminal
bind = $mainMod, F4, killactive, # close the active window
bind = $mainMod, Q, exec, kitty # Open the kitty terminal
bind = $mainMod, F4, killactive, # Close the active window
bind = $mainMod, L, exec, swaylock # Lock the screen
bind = $mainMod, M, exec, wlogout --protocol layer-shell # show the logout window
bind = $mainMod SHIFT, M, exit, # Exit Hyprland all together no (force quit Hyprland)
bind = $mainMod, M, exec, wlogout --protocol layer-shell # Show the logout window
bind = $mainMod SHIFT, M, exit, # Exit Hyprland all together no (force quit Hyprland) # This trailing pound symbol indicates that this line won't be included in tooltip
bind = $mainMod, E, exec, thunar # Show the graphical file browser
bind = $mainMod, V, togglefloating, # Allow a window to float
bind = $mainMod, V, togglefloating, # Toggle floating of active window
bind = $mainMod, SPACE, exec, wofi # Show the graphical app launcher
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, S, exec, grim -g "$(slurp)" - | swappy -f - # take a screenshot
bind = ALT, V, exec, cliphist list | wofi -dmenu | cliphist decode | wl-copy # open clipboard manager
bind = $mainMod, T, exec, ~/.config/HyprV/hyprv_util vswitch # switch HyprV version
bind = $mainMod, P, pseudo, # Toggle the active window’s pseudo mode
bind = $mainMod, J, togglesplit, # Toggle between splits
bind = $mainMod, S, exec, grim -g "$(slurp)" - | swappy -f - # Take a screenshot
bind = ALT, V, exec, cliphist list | wofi -dmenu | cliphist decode | wl-copy # Open clipboard manager
bind = $mainMod, T, exec, ~/.config/HyprV/hyprv_util vswitch # Switch HyprV version
bind = $mainMod SHIFT, T, exec, ~/.config/HyprV/waybar/scripts/baraction # Switch modes

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
Expand Down Expand Up @@ -194,4 +195,5 @@ bindm = $mainMod, mouse:273, resizewindow
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
source = ~/.config/hypr/media-binds.conf
source = ~/.config/hypr/env_var.conf
source = ~/.config/hypr/env_var.conf

6 changes: 5 additions & 1 deletion HyprV/hyprv_util
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,8 @@ TOOLTIP='Default Keybinds\n'\
'SUPER + T = Switch HyprV version\n'\
'ALT + V = Open clipboard manager'

echo '{"text": "'$VER'", "tooltip": "'$TOOLTIP'"}'
modKey=$(grep "\$mainMod = " ~/.config/hypr/hyprland.conf | cut -d "=" -f2 | tr -d \[:space:\])
TOOLTIP=$(awk -F "=|,|#" '/bind = / {gsub("= ", "=") gsub("\\$mainMod", "'$modKey'"); if (NF==6) printf $2" +"$3" ="$6"\\n"}' ~/.config/hypr/hyprland.conf | rev | cut -c 3- | rev)

echo '{"text": "'$VER'", "tooltip": "'$TOOLTIP'"}'

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ wofi wlogout xdg-desktop-portal-hyprland swappy grim slurp thunar \
polkit-gnome python-requests pamixer pavucontrol brightnessctl bluez \
bluez-utils blueman network-manager-applet gvfs thunar-archive-plugin \
file-roller btop pacman-contrib starship ttf-jetbrains-mono-nerd \
noto-fonts-emoji lxappearance xfce4-settings sddm-git sddm-sugar-candy-git
noto-fonts-emoji lxappearance xfce4-settings wl-clipboard cliphist \
nwg-look-bin qt5-svg qt5-quickcontrols2 qt5-graphicaleffects sddm
```

Or you can use the attached script "set-hypr" to install everything for you.
Or you can use the attached script "set-hypr" to install everything for you.

5 changes: 3 additions & 2 deletions set-hypr
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fi

#### Check for package manager ####
if [ ! -f /sbin/yay ]; then
echo -en "$CNT - Configuering yay."
echo -en "$CNT - Configuring yay."
git clone https://aur.archlinux.org/yay.git &>> $INSTLOG
cd yay
makepkg -si --noconfirm &>> ../$INSTLOG &
Expand Down Expand Up @@ -397,4 +397,5 @@ if [[ $HYP == "Y" || $HYP == "y" ]]; then
exec sudo systemctl start sddm &>> $INSTLOG
else
exit
fi
fi