Skip to content
Ja.KooLit edited this page Jul 28, 2024 · 36 revisions

TIPS & TRICKS

👋 Welcome to my Hyprland help, and tips and tricks

Tip

Before changing any files or configuration, it is advisable to create a back-up. So you can easily revert back to original settings if things goes sideways.

  • i.e. cp fileName.conf fileName.bak

⌨️ Common Operation Keys

Super = Windows Key

  • common operations

    • Super Shift H keyhint (Keyhints)

    • Super Return term (kitty)

    • Super Q quit (closes (not kills) the active window)

    • Super Shift Q quit (closes a specified window)

    • Super D show app menu (rofi)

    • Super F full screen

  • applications shortcuts

    • Super T file manager (thunar) - if you chose to install

  • container layout

    • Super Shift F toggle tiling/floating mode

    • Super Alt F toggle all windows in float mode

    • Super left mouse button move window

    • Super right mouse button resize window (note! only in float mode)

  • workspaces

    • Super 1 .. 0 switch to workspace 1 .. 10

    • Super Shift 1 .. 0 move (follow) container to workspace 1 .. 10

    • Super CTRL 1 .. 0 move (silent) container to workspace 1 .. 10

    • Super Tab cycle through workspaces

    • Super Shift Tab cycle previous workspaces

  • waybar

    • Super Ctrl B waybar style (waybar)

    • Super Alt B waybar layout (waybar)

    • Super B Hide / Unhide Waybar (waybar)

  • refresh waybar, swaync, rofi

    • Super Alt R reloads waybar, rofi, swaync, ags

  • These are only some. All keybinds are located in ~/.config/hypr/configs/Keybinds.conf

🖼️ wallpaper / styling stuff

  • CTRL ALT w wallpaper shuffle (right click on wallpaper  waybar module)

  • Super w wallpaper select (click on wallpaper waybar  module) add more wallpaper in ~/Pictures/wallpapers

  • right click on update  waybar module wallpaper cycle using swww
  • for the wallpaper styles and configurations, you can watch my video about it https://youtu.be/6ZGzOjMJBe4
  • scripts for wallpaper stuff are located in ~/.config/hypr/UserScripts file names WallpaperAutoChange.sh WallpaperSelect.sh WallpaperRandom.sh (first one for automatic wallpaper changed every 15 mins)
  • if your wallpapers are on a different path, edit the scripts above.

💻 Monitor, executables, keybindings, window rules,

  • files are located in ~/.config/hypr/UserConfigs . View with SUPER E
  • Keybindings file is located here ~/.config/hypr/UserConfigs/UserKeybinds.conf

🖼️ Taking Screen shots (you may need to hold down the function (fn) key. You can change keybinds in ~/.config/hypr/UserConfigs/UserKeybinds.conf)

  • Super PrintScr(button) full screenshot
  • Super Shift PrintSrc(button) active window screenshot
  • Super CTRL SHIFT PrintScr full screenshot + timer (5s)
  • Super CTRL Alt PrintScr full screenshot + timer (10s)
  • Super Shift S screenshot with swappy

🎗️ clipboard manager (cliphist)

  • Super Alt V launch the rofi menu of clipboard manager
    • click to select the clipboard. And paste as normal (CTRL V or right click menu)

    • some additional actions at the clipboard manager entry (CTRL del or ALT del)

♨️ Adjusting fonts sizes and font scaling including waybar fonts

  • nwg-look is a very good app. Use it to adjust your own preference.
  • for qt-apps, use qt5ct and/or qt6ct
  • HiDPI users, I suggest you do the following to have a better appearance.
  • adjust scaling according to your taste by editing ~/.config/hypr/UserConfigs/Monitors.conf

  • adjust font size using nwg-look (GTK Settings)

  • You can tweak the fonts scaling in Font tab in nwg-look

  • Lastly, if desired, adjust waybar fonts sizes in ~/.config/waybar/styles/ . NOT the styles.css since that is only a symlink to the styles in waybar styles folder

💫 GTK and QT apps theming.

  • for GTK apps theming, use nwg-look (GTK Settings) utility. Its a very powerful gtk utility theming. Take note that when changing from Dark Light using the waybar button dark-light, the DarkLight.sh (~/.config/hypr/scripts) will take over. The Darklight.sh is looking for "Light" and "Dark" keywords in ~/.themes, ~/.icons, waybar [Light] or [Dark], ~/Pictures/wallpapers/Dynamic-Wallpapers
  • For QT Apps theming, use qt5ct, and/or qt6ct and Kvantum Manager. By default, the qt-theme (set using kvantum), is set to Catpuccin-Mocha theme. You can change the qt apps theme using kvantum-manager.

⌨️ Keyboard passthrough for VM

  • kb_passthrough is disabled by default. To re-enable, edit ~/.config/hypr/UserConfigs/UserKeybinds.conf At the bottom you will see the Keyboard passthrough

🎗️ waybar customizations

Tip

Rename your waybar configs and styles that you have costumized so it wont be overwritten during upgrade

  • waybar font too big or too small. Edit the font-size in waybar styles located in ~/.config/waybar/styles/ . By default, it is set to 97%. After adjusting the GTK font scaling to your liking, edit all the waybar styles. Reduce or increase according to your needs. NOTE that its on percent %. You can also change to px whichever suits you. Note: This corresponds well with nwg-look (GTK Settings). So suggest to adjust first your font settings using nwg-look. And then adjust the waybar.

  • if you want 12h format instead of 24H format, edit the ~/.config/waybar/modules look for clock. for 12h format, should be like %I:%M%P; for 24H format, %H:%M:%S.. ensure to disable one format by adding // before that line. For clock formatting, you can use website: https://help.gnome.org/users/gthumb/stable/gthumb-date-formats.html.en

  • CPU Temperature:

    • to change from deg C to deg F , edit the ~/.config/waybar/modules look for "temperature". Change the format to "format": "{temperatureF}°F {icon}",
    • to fix the temperature if not showing correctly, edit the hwmon-path accordingly.
    • use this function to easily identify the hwmon path
      for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done 
    • look for K10temp for AMD CPU and coretemp for Intel CPU's
  • NOTE!!! some waybars layouts have a separate modules baked into their respective configs (ie Peony, Chrysanthemum, Camelia, etc) and does not get all modules from main waybar modules file. Edit each configs accordingly to your liking (~/.config/waybar/configs)

  • Regarding the waybar keyboard module, If you want to add in different waybar layout, the module name is custom/keyboard. Kindly NOTE that this will read your kb_layout in your Settings.conf. to change kb_layout, add in your Settings.conf .... i.e. kb_layout=us,es,ru and then refresh waybar (SUPER ALT R), then you can change keyboard by left clicking the keyboard module.

  • unwanted waybar module:

    • Simplest is to edit ~/.config/waybar/modules . Put // before or delete that module.
    • Or you dont really need to worry about since the modules not defined on waybar configs are not loaded.
    • So best and recommended to is to edit both the configs and styles that you prefer on configs and styles folder in ~/.config/waybar . Then simply load it.

Note

DO NOT edit directly the files ~/.config/waybar/config and ~/.config/waybar/style.css These two files are only symlinks to files in ~/.config/waybar/configs/ and ~/.config/waybar/styles/

➰ waybar customizations (Hyprland Workspaces)

  • plenty waybar hyprland/workspaces to choose from. Circle, Roman Number, Kanji pacman, and workspace number and icons. Assign accordingly on waybar configs of choice as per above. Check ~/.config/waybar/modules for their modules names . i.e. hyprland/workspaces#kanji

🏖️ Weather app related for Waybar and Hyprlock

  • By default, Weather.sh is in use for weather module in waybar and so as data for hyprlock (lockscreen).
  • To change between Weather.sh and Weather.py, edit ~/.config/waybar/modules locate custom/weather about line 640. Remove // on //"exec": "~/.config/hypr/UserScripts/Weather.py", and put // on line "exec": "~/.config/hypr/UserScripts/Weather.sh", . SUPER ALT R to refresh waybar
  • Weather.sh (Default weather app in waybar) edit ~/.config/hypr/UserScripts/Weather.sh to add your city. Make sure a major city in your Area. Delete rbn folder in ~/.cache and refresh waybar, SUPER ALT R
  • Starting from v2.2.10, the python based Weather script (~/.config/hypr/UserScripts/Weather.py) needs some tinkering on changing desired city. Explanation on how to add location is on the script

🎗️ Hyprland configurations

  • Hyprland configuration files are in ~/.config/hypr/UserConfigs with some settings ~/.config/hypr/configs in Can view using SUPER E (by default, will be opened with nano. You can edit default editor by editing ~/.config/hypr/scripts/QuickEdit.sh
  • In Generaral, costumize your own dots in ~/.config/hypr/UserConfigs
  • files located in this folder can be edited using editor of your choice.

🧲 notes for nvidia gpu users

  • Do note that you need to enable or disable some items in ENVariables.conf file located in ~/.config/hypr/UserConfigs/ENVariables.conf
  • a guide on wiki - https://wiki.hyprland.org/Nvidia/

🔔 SwayNC

  • if you only want to use notification part of swayNC, edit ~/.config/swaync/config.json
  • look at the widgets part. you can disable by putting /* / i.e. /"buttons-grid",*/ or delete that line. Then you can refresh with SUPER ALT R

🎗️ other notes

🎗️ ROFI BEATS & ROFI EMOTICONS

  • ROFI BEATS or ONLINE Music ( SUPER SHIFT M) (note: you may need to install yt-dlp or youtube-dl). You can edit the links of your choice. Script is located in ~/.config/hypr/UserScripts/RofiBeats.sh .
  • EMOTICONS (SUPER ALT E) - useful for chats or messages ). Click to copy and CTRL V to paste

💡 Reducing cpu usages / Battery saving

  • Hyprland has a nice animation but it cost cpu and gpu usages including ram usages.
  • On this dots, you can disable the borderangle animation in Hyprland settings under animations.
  • You can also disable blur, reduce the shadow etc
  • You can also refer to Hyprland Wiki

📦 Flatpak GTK Themes Dark & Light

  • Using the Dark Light Theme switcher in the waybar (beside the calendar in Waybar Default Layout), you can switch your Flatpak apps to set the Dark / Light GTK themes. However, some system flatpak apps may not honor this
  • work arounds: execute these two commands: in your tty (kitty)
  • sudo flatpak override --filesystem=$HOME/.themes
  • sudo flatpak override --filesystem=$HOME/.themes

🫥 Improving performance for Older Nvidia Cards using driver 470

🔒 hypridle and hyprlock

  • hypridle and hyprlock still a fairly new packages designed for Hyprland.
  • All configs are in ~/.config/hypr/. hypridle.conf and hyprlock.conf . Edit as you see fit for you

Installation

FAQ & TIPS

Keybinds

Known Issues & Notes to remember

Changelogs & Release Notes

Other Distros

Gallery & Youtube Videos

HOW TO's (Costumization on KooL's Dots)

Clone this wiki locally