Skip to content

Commit

Permalink
Big update: replaced dunst with SwayNC and cleaned up Waybar CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehllay committed Nov 19, 2023
1 parent 427dac3 commit f698c16
Show file tree
Hide file tree
Showing 12 changed files with 479 additions and 93 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ My Hyprland configuration for my Desktop with NVIDIA

## Packages (needs an AUR helper to install, like yay or paru)
```
hyprland-nvidia kitty papirus-icon-theme brightnessctl pipewire dracula-theme doplhin qt5ct qt6ct lightly-qt polkit-kde-agent libappindicator-gtk3 noto-fonts noto-fonts-cjk noto-fonts-emoji dunst swaylock-effects wlogout xdg-desktop-portal-hyprland rofi-lbonn-wayland-git rofi-emoji waybar swww hyprpicker cliphist ttf-jetbrainsmono-nerd starship cava pfetch-rs-bin python python-pywal python-haishoku fish
hyprland-nvidia kitty papirus-icon-theme brightnessctl pipewire dracula-theme doplhin qt5ct qt6ct lightly-qt polkit-kde-agent libappindicator-gtk3 noto-fonts noto-fonts-cjk noto-fonts-emoji swaync swaylock-effects wlogout xdg-desktop-portal-hyprland rofi-lbonn-wayland-git rofi-emoji waybar swww hyprpicker cliphist ttf-jetbrainsmono-nerd starship cava pfetch-rs-bin python python-pywal python-haishoku fish
```
## Screenshot
![Dracula](/screenshots/dracula.png)
Expand Down
2 changes: 2 additions & 0 deletions home/.config/feh/keys
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
size_to_image
zoom_fit w
6 changes: 4 additions & 2 deletions home/.config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ master {

misc {
disable_hyprland_logo = true
no_direct_scanout = true
}

gestures {
Expand Down Expand Up @@ -135,7 +136,7 @@ bind = $mainMod, J, togglesplit, # dwindle

bind=,XF86MonBrightnessDown,exec,brightnessctl set 2%-
bind=,XF86MonBrightnessUp,exec,brightnessctl set +2%
bind = SUPER, F, fullscreen,
bind = $mainMod, F, fullscreen,
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+
binde=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-
bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
Expand All @@ -151,6 +152,7 @@ bind = $mainMod SHIFT, P, exec, hyprpicker -a -n
bind = , code:107, exec, grim ~/Pictures/Screenshots/$(date +'%s_screenshot.png')
bind = $mainMod, S, exec, grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'%s_screenshot.png')
bind = $mainMod, L, exec, swaylock
bind = $mainMod ALT, N, exec, swaync-client -t


# Wallpaper
Expand Down Expand Up @@ -199,7 +201,7 @@ bindm = $mainMod, mouse:273, resizewindow
# Exec
exec-once=/usr/lib/polkit-kde-authentication-agent-1
exec-once=waybar
exec-once=dunst
exec-once=swaync
exec-once=swww init
exec-once=sleep 2 && swww img $(cat ~/.local/state/wallpaper_state.txt)
# Screensaver and lock screen
Expand Down
5 changes: 3 additions & 2 deletions home/.config/hypr/scripts/applytheme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ state_file="$HOME/.local/state/theme_state.txt"

if grep -q Dracula $state_file; then
#$script_dir/wallpaper.sh
wal --theme dracula
wal -n --theme dracula
hyprctl setcursor Dracula-cursors 24
gsettings set org.gnome.desktop.interface gtk-theme 'Dracula'
gsettings set org.gnome.desktop.interface cursor-theme 'Dracula-cursors'


elif grep -q Mocha $state_file; then
wal --theme catppuccin_mocha
wal -n --theme catppuccin_mocha
hyprctl setcursor Catppuccin-Mocha-Lavender-Cursors 24
gsettings set org.gnome.desktop.interface gtk-theme 'Catppuccin-Mocha-Standard-Lavender-Dark'
gsettings set org.gnome.desktop.interface cursor-theme 'Catppuccin-Mocha-Lavender-Cursors'
Expand All @@ -25,3 +25,4 @@ killall waybar

waybar </dev/null &>/dev/null &
pywalfox update
swaync-client -rs
2 changes: 1 addition & 1 deletion home/.config/hypr/scripts/wallpaper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ get_random_wallpaper() {
set_wallpaper() {
local wallpaper="$1"
if grep -q Wallpaper ~/.local/state/theme_state.txt; then
wal -i $wallpaper --saturate 0.75 --backend haishoku
wal -n -i $wallpaper --saturate 0.75 --backend haishoku
~/.config/hypr/scripts/applytheme.sh
fi
swww img $wallpaper --transition-type wipe --transition-fps 90
Expand Down
4 changes: 4 additions & 0 deletions home/.config/qt5ct/colors/Catppuccin-Mocha.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#ffcdd6f4, #ff1e1e2e, #ffa6adc8, #ff9399b2, #ff45475a, #ff6c7086, #ffcdd6f4, #ffcdd6f4, #ffcdd6f4, #ff1e1e2e, #ff181825, #ff7f849c, #ff89b4fa, #ff1e1e2e, #ff89b4fa, #fff38ba8, #ff1e1e2e, #ffcdd6f4, #ff11111b, #ffcdd6f4, #807f849c
disabled_colors=#ffa6adc8, #ff1e1e2e, #ffa6adc8, #ff9399b2, #ff45475a, #ff6c7086, #ffa6adc8, #ffa6adc8, #ffa6adc8, #ff1e1e2e, #ff11111b, #ff7f849c, #ff89b4fa, #ff45475a, #ff89b4fa, #fff38ba8, #ff1e1e2e, #ffcdd6f4, #ff11111b, #ffcdd6f4, #807f849c
inactive_colors=#ffcdd6f4, #ff1e1e2e, #ffa6adc8, #ff9399b2, #ff45475a, #ff6c7086, #ffcdd6f4, #ffcdd6f4, #ffcdd6f4, #ff1e1e2e, #ff181825, #ff7f849c, #ff89b4fa, #ffa6adc8, #ff89b4fa, #fff38ba8, #ff1e1e2e, #ffcdd6f4, #ff11111b, #ffcdd6f4, #807f849c
80 changes: 80 additions & 0 deletions home/.config/swaync/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "center",
"positionY": "top",
"layer": "overlay",
"control-center-layer": "top",
"layer-shell": true,
"cssPriority": "application",
"control-center-margin-top": 0,
"control-center-margin-bottom": 0,
"control-center-margin-right": 0,
"control-center-margin-left": 0,
"control-center-positionX": "right",
"notification-2fa-action": true,
"notification-inline-replies": false,
"notification-icon-size": 64,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"fit-to-screen": true,
"control-center-width": 500,
"control-center-height": 600,
"notification-window-width": 500,
"keyboard-shortcuts": true,
"image-visibility": "when-available",
"transition-time": 200,
"hide-on-clear": false,
"hide-on-action": true,
"script-fail-notify": true,
"scripts": {
"example-script": {
"exec": "echo 'Do something...'",
"urgency": "Normal"
},
"example-action-script": {
"exec": "echo 'Do something actionable!'",
"urgency": "Normal",
"run-on": "action"
}
},
"notification-visibility": {
"example-name": {
"state": "muted",
"urgency": "Low",
"app-name": "Spotify"
}
},
"widgets": [
"inhibitors",
"title",
"dnd",
"mpris",
"notifications"
],
"widget-config": {
"inhibitors": {
"text": "Inhibitors",
"button-text": "Clear All",
"clear-all-button": true
},
"title": {
"text": "Notifications",
"clear-all-button": true,
"button-text": "Clear All"
},
"dnd": {
"text": "Do Not Disturb"
},
"label": {
"max-lines": 5,
"text": "Label Text"
},
"mpris": {
"image-size": 96,
"image-radius": 12
}
}
}
Loading

0 comments on commit f698c16

Please sign in to comment.