Skip to content

Commit

Permalink
os: hyprland configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Nov 3, 2024
1 parent 91f68f4 commit edbb545
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- git: aliases for git clone `git clone p:repo-name`
- zsh: neovim config selector functions
- make: `git-sr` and `git-status` to check status of all repositories
- os: hyprland configuration files

### Changed
- git: restructure multiple configs, using relative include file paths
Expand Down
29 changes: 29 additions & 0 deletions hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,35 @@ exec-once = $wallpaper
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24

# Investigate - random things frmo the Internet
# env = SDL_VIDEODRIVER,wayland

# TODO: OBS environment variable for Wayland?

## -----------------------------------------
# OBS Studio settings - no difference notices on 20241025
# https://github.com/hyprwm/Hyprland/discussions/2106

# env = LIBVA_DRIVER_NAME,nvidia
# env = XDG_SESSION_TYPE,wayland
# env = XDG_SESSION_DESKTOP,Hyprland
# env = GBM_BACKEND,nvidia-drm
# env = __GLX_VENDOR_LIBRARY_NAME,nvidia
# env = WLR_NO_HARDWARE_CURSORS,1
# env = MOZ_ENABLE_WAYLAND,1
# env = _JAVA_AWT_WM_NONREPARENTING,1
# env = SDL_VIDEODRIVER,wayland
# env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
# env = QT_QPA_PLATFORM,wayland
# env = QT_AUTO_SCREEN_SCALE_FACTOR,1
#
# exec-once=dbus-update-activation-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=Hyprland
# exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# exec-once=systemctl --user restart xdg-desktop-portal.service
# exec-once=sleep 1 && /usr/lib/xdg-desktop-portal-hyprland &
## -----------------------------------------


#####################
### LOOK AND FEEL ###
Expand Down
108 changes: 79 additions & 29 deletions waybar/config.jsonc
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
// -*- mode: jsonc -*-
{
// "layer": "top", // Waybar at top layer
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"sway/workspaces",
"sway/mode",
// "sway/workspaces",
"hyprland/workspaces",
// "sway/mode",
"hyprland/submap",
"sway/scratchpad",
"custom/media"
],
"modules-center": [
"sway/window"
"hyprland/window",
],
"modules-right": [
"mpd",
Expand Down Expand Up @@ -50,6 +52,27 @@
// "default": ""
// }
// },
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"warp-on-scroll": false,
"format": "{name}: {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"hyprland/window": {
// Multiple monitors & window title
"separate-outputs": true
},
"keyboard-state": {
"numlock": true,
"capslock": true,
Expand All @@ -59,13 +82,16 @@
"unlocked": ""
}
},
"sway/mode": {
"hyperland/submap": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"format-icons": [
"",
""
],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
Expand Down Expand Up @@ -124,12 +150,26 @@
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
"format-icons": [
"",
"",
""
]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
"format-icons": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"battery": {
"states": {
Expand All @@ -144,21 +184,27 @@
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
"format-icons": [
"",
"",
"",
"",
""
]
},
"battery#bat2": {
"bat": "BAT2"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
Expand All @@ -184,7 +230,11 @@
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
"default": [
"",
"",
""
]
},
"on-click": "pavucontrol"
},
Expand All @@ -201,15 +251,15 @@
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/power": {
"format" : "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
"format": "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
}
}

0 comments on commit edbb545

Please sign in to comment.