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

feat: support for swaync #1438

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
5 changes: 4 additions & 1 deletion Configs/.config/hypr/keybindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ bind = $mainMod+Ctrl, P, exec, $scrPath/screenshot.sh sf # partial screenshot ca
bind = $mainMod+Alt, P, exec, $scrPath/screenshot.sh m # monitor screenshot capture
bind = , Print, exec, $scrPath/screenshot.sh p # all monitors screenshot capture

# notification center
bind = $mainMod, N, exe, swaync-client -t
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'exe' should be 'exec'.

Also, maybe this keybind should be moved to application shortcuts instead of being in its own category?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed and moved it to the app category


# Custom scripts
bind = $mainMod+Alt, G, exec, $scrPath/gamemode.sh # disable hypr effects for gamemode
bind = $mainMod+Alt, Right, exec, $scrPath/swwwallpaper.sh -n # next wallpaper
Expand Down Expand Up @@ -100,7 +103,7 @@ bind = $mainMod+Ctrl, Right, workspace, r+1
bind = $mainMod+Ctrl, Left, workspace, r-1

# Move to the first empty workspace
bind = $mainMod+Ctrl, Down, workspace, empty
bind = $mainMod+Ctrl, Down, workspace, empty

# Resize windows
binde = $mainMod+Shift, Right, resizeactive, 30 0
Expand Down
85 changes: 85 additions & 0 deletions Configs/.config/swaync/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "bottom",
"cssPriority": "application",
"control-center-width": 380,
"control-center-height": 1000,
"control-center-margin-top": 2,
"control-center-margin-bottom": 2,
"control-center-margin-right": 1,
"control-center-margin-left": 0,
"notification-icon-size": 64,
"notification-window-width": 600,
"notification-body-image-height": 200,
"notification-body-image-width": 200,
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"fit-to-screen": false,
"keyboard-shortcuts": true,
"image-visibility": "when-available",
"transition-time": 200,
"script-fail-notify": true,
"hide-on-clear": false,
"hide-on-action": true,
"notification-visibility": {
"example-name": {
"state": "muted",
"urgency": "Low",
"app-name": "Spotify"
}
},
"widgets": [
"buttons-grid",
"volume",
"backlight",
"mpris",
"dnd",
"title",
"notifications"
],
"widget-config": {
"title": {
"text": "Notifications",
"clear-all-button": true,
/* "button-text": " 󰎟 " */
"button-text": "Clear All"
},
"dnd": {
"text": "Do Not Disturb"
},
"mpris": {
"image-size": 96,
"image-radius": 12
},
"backlight": {
"label": " 󰃟 ",
"device": "intel_backlight",
"min": 10
},
"volume": {
"label": " 󰕾 "
},
"buttons-grid": {
"actions": [
{
"label": " 󱛆 ",
"command": "nm-connection-editor"
},
{
"label": "  ",
"command": "blueman-manager"
},
{
"label": " 󰃛 ",
"command": "hyprshade toggle bluefilter"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the command should be hyprshade toggle blue-light-filter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a custom 'shader' file called 'bluefilter'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a custom shader file called 'bluefilter'

},
{
"label": "  ",
"command": "sh -c ~/.config/hypr/scripts/logoutlaunch.sh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the script dir is changed to .local/share/bin/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm aware of that, but as I mentioned in the Additional context:

What are the functionality you want for each button

So I left it as it is for further changes

}
]
}
}
}
Loading