Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Late night 🌃 #103

Open
wants to merge 18 commits into
base: late-night-🌃
Choose a base branch
from
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 🔑:
Expand Down
73 changes: 36 additions & 37 deletions configs/hypr/hyprland.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
########################################################################################
__ __ _ _ _
| \/ (_)_ __ (_)_ __ ___ __ _| |
| |\/| | | '_ \| | '_ ` _ \ / _` | |
| | | | | | | | | | | | | | (_| | |
|_| |_|_|_| |_|_|_| |_| |_|\__,_|_|

_ _ _ _ ____ __ _
| | | |_ _ _ __ _ __| | __ _ _ __ __| | / ___|___ _ __ / _(_) __ _ ___
| |_| | | | | '_ \| '__| |/ _` | '_ \ / _` | | | / _ \| '_ \| |_| |/ _` / __|
| _ | |_| | |_) | | | | (_| | | | | (_| | | |__| (_) | | | | _| | (_| \__ \
|_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| \____\___/|_| |_|_| |_|\__, |___/
|___/|_| |___/
#########################################################################################
# __ __ _ _ _
#| \/ (_)_ __ (_)_ __ ___ __ _| |
#| |\/| | | '_ \| | '_ ` _ \ / _` | |
#| | | | | | | | | | | | | | (_| | |
#|_| |_|_|_| |_|_|_| |_| |_|\__,_|_|
#
# _ _ _ _ ____ __ _
#| | | |_ _ _ __ _ __| | __ _ _ __ __| | / ___|___ _ __ / _(_) __ _ ___
#| |_| | | | | '_ \| '__| |/ _` | '_ \ / _` | | | / _ \| '_ \| |_| |/ _` / __|
#| _ | |_| | |_) | | | | (_| | | | | (_| | | |__| (_) | | | | _| | (_| \__ \
#|_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| \____\___/|_| |_|_| |_|\__, |___/
# |___/|_| |___/
##########################################################################################

# You have to change this based on your monitor
monitor=eDP-1,1920x1080@60,0x0,1
Expand All @@ -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 {
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
82 changes: 82 additions & 0 deletions configs/hypr/keybindings.conf
Original file line number Diff line number Diff line change
@@ -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
19 changes: 10 additions & 9 deletions configs/hypr/scripts/brightness
Original file line number Diff line number Diff line change
@@ -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
23 changes: 11 additions & 12 deletions configs/waybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,32 @@
"clock": {
"format": "<span color='#bf616a'> </span>{:%a %b %d}",
"format-alt": "<span color='#bf616a'> </span>{:%I:%M %p}",
"tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>",
"tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>"
},

"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": {
Expand All @@ -80,7 +79,7 @@

"bluetooth": {
"on-click": "~/.config/waybar/scripts/rofi-bluetooth &",
"format": " {status}",
"format": " {status}"
},

"battery": {
Expand All @@ -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",
Expand All @@ -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": " <span color='#6a92d7'>⏻ </span>",
"on-click": "bash ~/.config/waybar/scripts/power-menu/powermenu.sh",
"on-click": "bash ~/.config/waybar/scripts/power-menu/powermenu.sh"
},
"custom/launcher": {
"format": " <span color='#6a92d7'> </span>",
"on-click": "rofi -show drun",
},
"on-click": "rofi -show drun"
}
}
27 changes: 15 additions & 12 deletions configs/waybar/scripts/power-menu/powermenu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down