diff --git a/README.md b/README.md
index 394d3818a..359d961df 100644
--- a/README.md
+++ b/README.md
@@ -22,12 +22,14 @@
yay -S hyprland-git
```
+- For all dependencies, install in Manual [(Manual Build Hyperland)](https://wiki.hyprland.org/Getting-Started/Installation/)
+
### Base setups đģ:
- Install waybar, Rofi, Dunst, kitty terminal, swaybg, swaylock-fancy, swayidle, pamixer, light, Brillo:
```
-yay -S waybar-hyprland rofi dunst kitty swaybg swaylock-fancy-git swayidle pamixer light brillo
+yay -S waybar rofi dunst kitty swaybg swaylock-fancy-git swayidle pamixer light brillo brightnessctl
```
### Necessary Font đ:
diff --git a/configs/hypr/hyprland.conf b/configs/hypr/hyprland.conf
index 1016feff9..680dcb093 100755
--- a/configs/hypr/hyprland.conf
+++ b/configs/hypr/hyprland.conf
@@ -1,17 +1,17 @@
-########################################################################################
- __ __ _ _ _
-| \/ (_)_ __ (_)_ __ ___ __ _| |
-| |\/| | | '_ \| | '_ ` _ \ / _` | |
-| | | | | | | | | | | | | | (_| | |
-|_| |_|_|_| |_|_|_| |_| |_|\__,_|_|
-
- _ _ _ _ ____ __ _
-| | | |_ _ _ __ _ __| | __ _ _ __ __| | / ___|___ _ __ / _(_) __ _ ___
-| |_| | | | | '_ \| '__| |/ _` | '_ \ / _` | | | / _ \| '_ \| |_| |/ _` / __|
-| _ | |_| | |_) | | | | (_| | | | | (_| | | |__| (_) | | | | _| | (_| \__ \
-|_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| \____\___/|_| |_|_| |_|\__, |___/
- |___/|_| |___/
#########################################################################################
+# __ __ _ _ _
+#| \/ (_)_ __ (_)_ __ ___ __ _| |
+#| |\/| | | '_ \| | '_ ` _ \ / _` | |
+#| | | | | | | | | | | | | | (_| | |
+#|_| |_|_|_| |_|_|_| |_| |_|\__,_|_|
+#
+# _ _ _ _ ____ __ _
+#| | | |_ _ _ __ _ __| | __ _ _ __ __| | / ___|___ _ __ / _(_) __ _ ___
+#| |_| | | | | '_ \| '__| |/ _` | '_ \ / _` | | | / _ \| '_ \| |_| |/ _` / __|
+#| _ | |_| | |_) | | | | (_| | | | | (_| | | |__| (_) | | | | _| | (_| \__ \
+#|_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| \____\___/|_| |_|_| |_|\__, |___/
+# |___/|_| |___/
+##########################################################################################
# You have to change this based on your monitor
monitor=eDP-1,1920x1080@60,0x0,1
@@ -23,21 +23,23 @@ exec-once=waybar
exec-once=dunst
# Wallpaper
exec-once=swaybg -o \* -i ~/.config/hypr/wallpapers/night.jpg -m fill
+
# For screen sharing
-exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
+#exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# For keyboard
exec-once=fcitx5 -D
# For lockscreen
exec-once=swayidle -w timeout 200 'swaylock-fancy'
+
# Start Page
-exec-once=~/.config/hypr/scripts/startpage.sh
+# exec-once=~/.config/hypr/scripts/startpage.sh
# Bluetooth
exec-once=blueman-applet # Make sure you have installed blueman
# Screen Sharing
-exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
-exec-once=~/.config/hypr/scripts/screensharing.sh
+# exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
+# exec-once=~/.config/hypr/scripts/screensharing.sh
input {
@@ -63,12 +65,10 @@ device {
gestures {
workspace_swipe = true
- workspace_swipe_fingers = 3
+ #workspace_swipe_fingers = 3
}
-
-
general {
layout=dwindle
sensitivity=1.0 # for mouse cursor
@@ -86,7 +86,7 @@ decoration {
rounding=18
blur {
enabled=1
- size=6.8 # minimum 1
+ size=6 # minimum 1
passes=2 # minimum 1, more passes = more resource intensive.
new_optimizations = true
@@ -133,18 +133,17 @@ misc {
mouse_move_enables_dpms=true
vfr = false
}
-
-########################################################################################
-
-\ \ / (_) | | | __ \ | |
- \ \ /\ / / _ _ __ __| | _____ _____ | |__) | _| | ___ ___
- \ \/ \/ / | | '_ \ / _` |/ _ \ \ /\ / / __| | _ / | | | |/ _ \/ __|
- \ /\ / | | | | | (_| | (_) \ V V /\__ \ | | \ \ |_| | | __/\__ \
- \/ \/ |_|_| |_|\__,_|\___/ \_/\_/ |___/ |_| \_\__,_|_|\___||___/
-
-########################################################################################
-
-
+# sources
+source = ~/.config/hypr/keybindings.conf
+#########################################################################################
+#
+#\ \ / (_) | | | __ \ | |
+# \ \ /\ / / _ _ __ __| | _____ _____ | |__) | _| | ___ ___
+# \ \/ \/ / | | '_ \ / _` |/ _ \ \ /\ / / __| | _ / | | | |/ _ \/ __|
+# \ /\ / | | | | | (_| | (_) \ V V /\__ \ | | \ \ |_| | | __/\__ \
+# \/ \/ |_|_| |_|\__,_|\___/ \_/\_/ |___/ |_| \_\__,_|_|\___||___/
+#
+#########################################################################################
# Float Necessary Windows
windowrule=float,Rofi
windowrule=float,pavucontrol
@@ -163,13 +162,13 @@ windowrule=opacity 0.92,Thunar
windowrule=opacity 0.96,discord
windowrule=opacity 0.9,VSCodium
windowrule=opacity 0.88,obsidian
+# Window Rules > Visual Studio Code
+windowrule=opacity .95 ,^(Code)$
-^.*nvim.*$
+
+#^.*nvim.*$
windowrule=tile,librewolf
windowrule=tile,spotify
windowrule=opacity 1,neovim
bindm=SUPER,mouse:272,movewindow
bindm=SUPER,mouse:273,resizewindow
-
-#sources
-source = ~/.config/hypr/keybindings.conf
diff --git a/configs/hypr/keybindings.conf b/configs/hypr/keybindings.conf
new file mode 100755
index 000000000..ac9652a8c
--- /dev/null
+++ b/configs/hypr/keybindings.conf
@@ -0,0 +1,82 @@
+############################################
+# ____ _ _ _
+# | _ \(_) | (_)
+# | |_) |_ _ __ __| |_ _ __ __ _ ___
+# | _ <| | '_ \ / _` | | '_ \ / _` / __|
+# | |_) | | | | | (_| | | | | | (_| \__ \
+# |____/|_|_| |_|\__,_|_|_| |_|\__, |___/
+# __/ |
+# |___/
+#
+############################################
+
+# example binds
+bind=SUPER,Q,killactive
+# exit sesion
+bind = SUPER,M,exit
+# lock screen
+bind = SUPER,B,exec,swaylock-fancy
+#bind=SUPER,B,exec,librewolf
+bind=SUPER,F,fullscreen,1
+bind=SUPERSHIFT,F,fullscreen,0
+bind=SUPER,RETURN,exec,kitty
+bind=SUPER,C,killactive
+bind=SUPERSHIFT,Q,exit
+bind=SUPER,E,exec,pcmanfm
+bind=SUPER,D,exec,rofi -show drun
+
+bind=,XF86AudioMute,exec,~/.config/hypr/scripts/volume mute
+bind=,XF86AudioLowerVolume,exec,~/.config/hypr/scripts/volume down
+bind=,XF86AudioRaiseVolume,exec,~/.config/hypr/scripts/volume up
+bind=,XF86AudioMicMute,exec,pactl set-source-mute @DEFAULT_SOURCE@ toggle
+
+bind=,XF86MonBrightnessUp,exec,~/.config/hypr/scripts/brightness up # increase screen brightness
+bind=,XF86MonBrightnessDown,exec,~/.config/hypr/scripts/brightness down # decrease screen brightnes
+
+bind=SUPERSHIFT,C,exec,bash ~/.config/hypr/scripts/hyprPicker.sh
+bind=SUPERSHIFT,E,exec,wlogout
+bind = SUPER, T, togglefloating,
+
+## Screen shot
+bind=SUPERSHIFT,S,exec,grim -g "$(slurp)"
+## Emoji selector
+bind=SUPERSHIFT,E,exec,rofi -modi emoji -show emoji
+
+bind=SUPER,j,movefocus,d
+bind=SUPER,k,movefocus,u
+
+bind=SUPER,h,movefocus,l
+bind=SUPER,l,movefocus,r
+
+bind=SUPER,left,resizeactive,-40 0
+bind=SUPER,right,resizeactive,40 0
+
+bind=SUPER,up,resizeactive,0 -40
+bind=SUPER,down,resizeactive,0 40
+
+bind=SUPERSHIFT,h,movewindow,l
+bind=SUPERSHIFT,l,movewindow,r
+bind=SUPERSHIFT,k,movewindow,u
+bind=SUPERSHIFT,j,movewindow,d
+
+bind=SUPER,1,workspace,1
+bind=SUPER,2,workspace,2
+bind=SUPER,3,workspace,3
+bind=SUPER,4,workspace,4
+bind=SUPER,5,workspace,5
+bind=SUPER,6,workspace,6
+bind=SUPER,7,workspace,7
+bind=SUPER,8,workspace,8
+bind=SUPER,9,workspace,9
+bind=SUPER,0,workspace,10
+
+bind=SUPERSHIFT,1,movetoworkspacesilent,1
+bind=SUPERSHIFT,2,movetoworkspacesilent,2
+bind=SUPERSHIFT,3,movetoworkspacesilent,3
+bind=SUPERSHIFT,4,movetoworkspacesilent,4
+bind=SUPERSHIFT,5,movetoworkspacesilent,5
+bind=SUPERSHIFT,6,movetoworkspacesilent,6
+bind=SUPERSHIFT,7,movetoworkspacesilent,7
+bind=SUPERSHIFT,8,movetoworkspacesilent,8
+bind=SUPERSHIFT,9,movetoworkspacesilent,9
+bind=SUPERSHIFT,0,movetoworkspacesilent,10
diff --git a/configs/hypr/scripts/brightness b/configs/hypr/scripts/brightness
index 542b91711..371d23fa9 100755
--- a/configs/hypr/scripts/brightness
+++ b/configs/hypr/scripts/brightness
@@ -1,18 +1,19 @@
#!/bin/sh
-
down() {
-brillo -u 150000 -U 2
-brightness=$(light -g)
-dunstify -a "BRIGHTNESS" "Decreasing to $brightness%" -h int:value:"$brightness" -i display-brightness-symbolic -r 2593 -u normal
+ brightnessctl set 5%-
+ brillo -u 150000 -U 2
+ brightness=$(light -g)
+ dunstify -a "BRIGHTNESS" "Decreasing to $brightness%" -h int:value:"$brightness" -i display-brightness-symbolic -r 2593 -u normal
}
up() {
-brillo -u 150000 -A 2
-brightness=$(light -g)
-dunstify -a "BRIGHTNESS" "Increasing to $brightness%" -h int:value:"$brightness" -i display-brightness-symbolic -r 2593 -u normal
+ brightnessctl set +5%
+ brillo -u 150000 -A 2
+ brightness=$(light -g)
+ dunstify -a "BRIGHTNESS" "Increasing to $brightness%" -h int:value:"$brightness" -i display-brightness-symbolic -r 2593 -u normal
}
case "$1" in
- up) up;;
- down) down;;
+ up) up ;;
+ down) down ;;
esac
diff --git a/configs/waybar/config b/configs/waybar/config
index 8d7a3abab..e67dd799a 100644
--- a/configs/waybar/config
+++ b/configs/waybar/config
@@ -32,33 +32,32 @@
"clock": {
"format": "īŗ {:%a %b %d}",
"format-alt": "ī {:%I:%M %p}",
- "tooltip-format": "{:%B %Y}\n{calendar}",
+ "tooltip-format": "{:%B %Y}\n{calendar}"
},
"cpu": {
"interval": 10,
"format": "īĻ {}%",
"max-length": 10,
- "on-click": "",
+ "on-click": ""
},
"memory": {
"interval": 30,
"format": "īĒ {}%",
"format-alt":"ī˛ {used:0.1f}G",
- "max-length": 10,
+ "max-length": 10
},
"backlight": {
"device": "DP-1",
"format": "{icon} {percent}%",
"format-icons": ["î", "î", "î", "î", "î", "î", "î", "î", "î"],
- "on-click": "",
+ "on-click": ""
},
"network": {
"format-wifi": "īĒ¨ {signalStrength}%",
"format-ethernet": "īŋ wired",
"format-disconnected": "īĒŠ",
- "on-click": "bash ~/.config/waybar/scripts/rofi-wifi-menu.sh",
- "format-disconnected": "Disconnected īą ",
+ "on-click": "bash ~/.config/waybar/scripts/rofi-wifi-menu.sh"
},
"pulseaudio": {
@@ -80,7 +79,7 @@
"bluetooth": {
"on-click": "~/.config/waybar/scripts/rofi-bluetooth &",
- "format": "ī {status}",
+ "format": "ī {status}"
},
"battery": {
@@ -99,7 +98,7 @@
"format-plugged": "īĻ {capacity}%",
"format-alt": "{icon} {time}",
"format-full": "īĻ {capacity}%",
- "format-icons": ["ī ", "ī ", "ī ", "ī ", "ī "],
+ "format-icons": ["ī ", "ī ", "ī ", "ī ", "ī "]
},
"custom/weather": {
"exec": "python3 ~/.config/waybar/scripts/weather.py",
@@ -114,14 +113,14 @@
"return-type": "json",
"on-click": "playerctl play-pause",
"on-double-click-right": "playerctl next",
- "on-scroll-down": "playerctl previous",
+ "on-scroll-down": "playerctl previous"
},
"custom/power-menu": {
"format": " âģ ",
- "on-click": "bash ~/.config/waybar/scripts/power-menu/powermenu.sh",
+ "on-click": "bash ~/.config/waybar/scripts/power-menu/powermenu.sh"
},
"custom/launcher": {
"format": " ī ",
- "on-click": "rofi -show drun",
- },
+ "on-click": "rofi -show drun"
+ }
}
diff --git a/configs/waybar/scripts/power-menu/powermenu.sh b/configs/waybar/scripts/power-menu/powermenu.sh
index d159b9296..6ed2a256f 100755
--- a/configs/waybar/scripts/power-menu/powermenu.sh
+++ b/configs/waybar/scripts/power-menu/powermenu.sh
@@ -60,18 +60,21 @@ run_cmd() {
mpc -q pause
amixer set Master mute
systemctl suspend
+ swaylock-fancy
+
elif [[ $1 == '--logout' ]]; then
- if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
- openbox --exit
- elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
- bspc quit
- elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
- i3-msg exit
- elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
- qdbus org.kde.ksmserver /KSMServer logout 0 0 0
- elif [[ "$DESKTOP_SESSION" == 'Hyprland' ]]; then
- hyprctl dispatch exit 1
- fi
+ hyprctl dispatch exit 1
+ #if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
+ # openbox --exit
+ #elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
+ # bspc quit
+ #elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
+ # i3-msg exit
+ #elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
+ # qdbus org.kde.ksmserver /KSMServer logout 0 0 0
+ #elif [[ "$DESKTOP_SESSION" == 'Hyprland' ]]; then
+ # hyprctl dispatch exit 1
+ #fi
fi
else
exit 0
@@ -93,7 +96,7 @@ case $chosen in
elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock
elif [[ -x '/usr/bin/Hyprland' ]]; then
- swaylock
+ swaylock-fancy
fi
;;
$suspend)