summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2024-08-25 00:36:49 +0530
committerSaumit <justsaumit@protonmail.com>2024-08-25 00:36:49 +0530
commit49057b84fb1fbafd427626f3619206aa69f7353a (patch)
tree92597ab4f6460ac51e0022ef11957991426383cc
parentee6bd2b95b3f333e47371bf8ae5d1f9e1960347b (diff)
hypr: refactoring volume control, webcord screenshare, adding tray apps
-rw-r--r--.config/hypr/hyprland.conf21
1 files changed, 11 insertions, 10 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index 51d3d7d..4fcf23e 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -6,23 +6,22 @@ monitor=HDMI-A-1,1920x1080@144,0x0,1.00,transform,0,mirror,eDP-1
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
-exec-once = waybar & dunst & wpaperd & suspend.sh & nextcloud
+exec-once = waybar & dunst & wpaperd & suspend.sh & nextcloud & nm-applet & blueman
#exec-once = dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY
#exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY && XDG_CURRENT_DESKTOP=Hyprland
exec-once = systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
+exec-once = xhost +SI:localuser:root
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Some default env vars.
env = XCURSOR_SIZE,24
-env = LIBVA_DRIVER_NAME,nvidia
+#env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
-env = GBM_BACKEND,nvidia-drm
-env = __GLX_VENDOR_LIBRARY_NAME,nvidia
+#env = GBM_BACKEND,nvidia-drm
+#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
-$GRIM_DEFAULT_DIR=$HOME/pix/Screenshots
-env = GRIM_DEFAULT_DIR,$GRIM_DEFAULT_DIR
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
@@ -186,7 +185,7 @@ bind = $MOD SHIFT, T, exec, teams
# Launch spotify
bind = $MOD SHIFT, M, exec, spotify
# Launch discord
-bind = $MOD SHIFT, D, exec, webcord
+bind = $MOD SHIFT, D, exec, webcord --enable-features=UseOzonePlatform --ozone-platform=wayland
# Launch telegram
bind = $MOD CTRL, T, exec, telegram-desktop
@@ -217,10 +216,12 @@ bind = ALT ,Print, exec, flameshot gui
#otherkeyb
bind = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && [[ "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep MUTE)" ]] && dunstify "Mute" "Volume set to 0%" -i volume-xmark -t 1000 -r 1234
+#binde = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ && dunstify -i volume-high -t 1500 -r 1235 "Volume Changed" "Volume increased by 2%"
binde = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ && dunstify "Volume Changed" "Volume set to $(volumecurr)" -i volume-high -t 1500 -r 1235
-binde = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && dunstify "Volume Changed" "Volume set to $(volumecurr)" -i volume-low -t 1500 -r 1236
-binde = ,XF86MonBrightnessUp, exec, brillo -s intel_backlight -A 4 && dunstify -u normal -t 3000 -r 90210 -i brightness "$(printf %.0f%% $( brillo -G) )"
-binde = ,XF86MonBrightnessDown, exec, brillo -s intel_backlight -U 4 && dunstify -u normal -t 3000 -r 90210 -i brightness "$(printf %.0f%% $( brillo -G) )"
+# binde = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && dunstify -i volume-low -t 1500 -r 1235 "Volume Changed" "Volume decreased by 2%"
+binde = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && dunstify "Volume Changed" "Volume set to $(volumecurr)" -i volume-low -t 1500 -r 1236
+binde = ,XF86MonBrightnessUp, exec, brillo -A 4 && dunstify -u normal -t 3000 -r 90210 -i brightness "$(printf %.0f%% $( brillo -G) )"
+binde = ,XF86MonBrightnessDown, exec, brillo -U 4 && dunstify -u normal -t 3000 -r 90210 -i brightness "$(printf %.0f%% $( brillo -G) )"
#Launch rofi calc mode
bind = $MOD, F2 , exec, rofi -show calc -modi calc -no-show-match -no-sort
bind = , XF86Calculator, exec, rofi -show calc -modi calc -no-show-match -no-sort