From 891054b64ecb26184b82b28a0147ef13ca785f21 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Tue, 10 Dec 2024 15:09:03 -0300 Subject: [PATCH] :wastebasket: remove: swaync and wlogout to use eww stuff instead --- swaync/_colors.css | 10 - swaync/_control-center.css | 278 -------- swaync/_notifications.css | 91 --- swaync/config.json | 131 ---- swaync/configSchema.json | 621 ------------------ .../control-center/bluetooth-toggle.sh | 19 - swaync/scripts/control-center/dnd-toggle.sh | 19 - .../scripts/control-center/internet-toggle.sh | 19 - .../control-center/recording-toggle.sh | 36 - swaync/style.css | 17 - wlogout/layout | 30 - wlogout/style.css | 80 --- 12 files changed, 1351 deletions(-) delete mode 100644 swaync/_colors.css delete mode 100644 swaync/_control-center.css delete mode 100644 swaync/_notifications.css delete mode 100644 swaync/config.json delete mode 100644 swaync/configSchema.json delete mode 100755 swaync/scripts/control-center/bluetooth-toggle.sh delete mode 100644 swaync/scripts/control-center/dnd-toggle.sh delete mode 100755 swaync/scripts/control-center/internet-toggle.sh delete mode 100644 swaync/scripts/control-center/recording-toggle.sh delete mode 100644 swaync/style.css delete mode 100644 wlogout/layout delete mode 100644 wlogout/style.css diff --git a/swaync/_colors.css b/swaync/_colors.css deleted file mode 100644 index 2a8abd9..0000000 --- a/swaync/_colors.css +++ /dev/null @@ -1,10 +0,0 @@ - -@import "../../.cache/wal/colors-swaync.css"; - -@define-color highlight @color1; -@define-color bg-slider shade(@color1, .2); -@define-color bg-button shade(@highlight, .72); -@define-color background-alt shade(@color2, .6); -@define-color hover shade(@highlight, .6); -@define-color active @color8; -@define-color text @foreground; diff --git a/swaync/_control-center.css b/swaync/_control-center.css deleted file mode 100644 index c5a8a1e..0000000 --- a/swaync/_control-center.css +++ /dev/null @@ -1,278 +0,0 @@ - -/* Control Center Notifications */ -.control-center .notification-row .notification-background .notification { - border-radius: 18px; - background-color: shade(@color1, .7); - border: .15em solid shade(@color1, .85); - padding: 10px; - margin-bottom: 11px; -} - -.control-center .notification-row .notification-background .notification:first-child { - margin-top: 8px; -} - -.control-center .notification-row .notification-background .notification:last-child { - margin-bottom: 0; -} - -.control-center .notification-row .notification-background .notification.critical { - box-shadow: inset 0 0 0px 2px @color1; - border: none; -} - -.control-center .notification-row .notification-background .notification .notification-content { - margin: 8px; - font-family: "Cantarell", "Noto Sans CJK" -} -.control-center .notification-row .notification-background .notification .notification-content .summary { - font-family: "Cantarell", "Noto Sans CJK"; - color: @foreground; - font-size: 1.2em; - font-weight: 600; -} - -.control-center .notification-row .notification-background .notification .notification-content .time { - color: @foreground; -} - -.control-center .notification-row .notification-background .notification .notification-content .body { - color: @foreground; -} - -.control-center .notification-row .notification-background .notification .image { - box-shadow: 0 0 3px 0 black; -} - -.control-center .notification-row .notification-background .notification > *:last-child > * { - min-height: 3.4em; -} - -.control-center .notification-row .close-button { - margin-top: 12px; - margin-right: 2px; - border-radius: 6px; - padding: 1px; - background: @color1; -} - -/* Control Center stuff */ - -.control-center { - box-shadow: 0 2 10px 1px black; - border-radius: 16px; - margin: 14px; - background: @background; - color: @text; - padding: 28px; -} - -.widget-title > label { - color: @foreground; - font-size: 1.6em; - font-weight: 600; - margin-bottom: 10px; -} - -.widget-title button { - border-radius: 8px; - background: @bg-button; - padding: 6px 8px; -} - -.widget-title button:hover { - background-color: @hover; -} - -.widget-title button:active { - background-color: @active; -} - -.widget-title button label { - color: @foreground; - font-weight: 600; -} - -.widget-label { - padding: .2rem; -} - -.widget-label > label { - color: @foreground; - font-weight: 600; - font-size: 1.6em; -} - -.widget-dnd { - margin: 0px; - font-size: 1.1rem; -} - -.widget-dnd > switch { - font-size: 8px; - border-radius: 16px; - background: @background; - box-shadow: inset 0 0 0 1px gray; -} - -.widget-dnd > switch slider { - background: @highlight; - border-radius: 16px; - margin: -2px; -} - -/* MPRIS */ -.widget-mpris { - padding: 0px 0px; - box-shadow: none; -} - -.widget-mpris .widget-mpris-player { - box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .3); - padding: 24px; - background-color: transparent; - padding-bottom: 16px; - border-radius: 16px; - outline: none; - padding: 18px; - - border: none; - margin: 0 0 0 0; -} - -/* mpris controls */ -.widget-mpris .widget-mpris-player > *:last-child > button { - border-radius: 8px; -} - -.widget-mpris .widget-mpris-player > *:last-child > button:hover { - background: @hover; -} - -.widget-mpris .widget-mpris-player > *:last-child > button:active { - background: @active; -} - -.widget-mpris > box > button { - box-shadow: none; -} - -.widget-mpris .image { - padding-right: 0.5rem; - border-radius: 16px; -} - -.widget-mpris .widget-mpris-title { - font-family: "Cantarell", "Noto Sans"; - font-weight: 700; - font-size: 1.2rem; - text-shadow: 1px 1px 2px black; -} - -.widget-mpris .widget-mpris-subtitle { - font-size: 0.8rem; - text-shadow: 1px 1px 2px black; -} - - -.widget-menubar > box > .menu-button-bar > button > label { - font-size: 3rem; - padding: 0.5rem 2rem; -} - -.widget-menubar > box > .menu-button-bar > :last-child { - color: #f38ba8; -} - -.widget-buttons-grid { - margin-top: 2px; -} - -.widget-buttons-grid button { - background: @bg-button; - padding: 14px 12px; - border-radius: 16px; - margin: 2px; -} - -.widget-buttons-grid button:hover { - background: @hover; -} - -.widget-buttons-grid button:active { - background: @active; -} - -.widget-buttons-grid button:checked { - background: @color2; -} - -.widget-buttons-grid button label { - font-size: 1em; - color: @foreground; - font-weight: 600; -} - -.horizontal trough { /* slider's background */ - background-color: shade(@color1, .4); - margin: 0 4px; - border-radius: 16px; - padding: 4px; -} - -.horizontal trough slider { /* slider's dot indicator */ - background: @foreground; - box-shadow: inset 0 0 1px .5px @background-alt; - min-width: 24px; - min-height: 24px; - margin: -4px; - border-radius: 50%; -} - -.horizontal trough slider:active { - background: shade(@foreground, .75); -} - -.horizontal trough highlight { - border-top-left-radius: 14px; - border-bottom-left-radius: 14px; - background: shade(@highlight, .9); -} - -.widget-volume { - margin-top: 1rem; - margin-bottom: 0.8rem; -} - -.widget-volume label { - font-size: 1.5rem; - color: @text; - margin-left: 5px; - margin-right: 6px; -} - -.widget-volume .per-app-volume { - margin-top: 4px; - padding: 6px; - border-radius: 6px; - background: shade(@background, .6); -} - -.widget-volume .per-app-volume > * { - margin-bottom: 6px; -} - -.widget-volume .per-app-volume > *:last-child { - margin-bottom: 0; -} - -.widget-backlight { - margin-bottom: 1rem; -} - -.widget-backlight label { - font-size: 1.5rem; - margin-left: 7px; - margin-right: 3px; - color: @text; -} diff --git a/swaync/_notifications.css b/swaync/_notifications.css deleted file mode 100644 index d31ce6d..0000000 --- a/swaync/_notifications.css +++ /dev/null @@ -1,91 +0,0 @@ - -.floating-notifications .notification-row .notification-background { - box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #313244; - border-radius: 16px; - margin: 12px; -} - -.floating-notifications .notification-row .notification { - border-radius: 16px; - background-color: @background; - color: @foreground; - padding: 8px; -} - -.notification-row > * > * > * > * > *:first-child { - min-height: 3.4em; - border-top-left-radius: 32px; - border-top-right-radius: 32px; -} - -.notification-row .notification.critical { - box-shadow: none; - box-shadow: inset 0 0 1px 1px @color1; -} - -.notification-row .notification-background .notification { - padding: 14px; -} - -.notification-row .notification .image { - margin-right: 6px; - border-radius: 8px; -} - -.floating-notifications .notification-row .notification-background .close-button { - border-radius: 8px; - margin-top: 4px; - margin-right: 2px; - padding: 2px; - color: @foreground; - background-color: shade(@color1, .7); -} - -.notification-row .notification-background .notification .notification-content .summary { - font-size: 1.2em; - margin-bottom: 2px; - font-weight: 600; - color: @foreground; -} - -.notification-row .notification-background .notification .notification-content .time { - color: @foreground; -} - -.notification-row .notification-background .notification .notification-content .body { - color: @foreground; - margin-bottom: .6em; -} - -.notification-row .notification .notification-action:hover { - background-color: @hover; -} - -.notification-row .notification .notification-action:active { - background-color: @active; - color: @foreground; -} - -/* General Notification Styles */ -.notification .notification-action { - border-radius: 16px; - color: @text; - font-weight: 600; - background-color: @bg-button; - border: .6px solid @background; - margin: .3em 0; -} - -.close-button:hover { - background-color: @color1; -} - -.close-button:active { - background-color: @color3; -} - -.notification.critical progress, -.notification.low progress, -.notification.normal progress { - background-color: @color3; -} diff --git a/swaync/config.json b/swaync/config.json deleted file mode 100644 index f47de03..0000000 --- a/swaync/config.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "$schema": "configSchema.json", - "positionX": "right", - "positionY": "top", - "layer": "overlay", - "control-center-layer": "overlay", - "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, - "notification-2fa-action": true, - "notification-inline-replies": false, - "notification-icon-size": 64, - "notification-body-image-height": 100, - "notification-body-image-width": 200, - "timeout": 5, - "timeout-low": 3, - "timeout-critical": 0, - "fit-to-screen": false, - "relative-timestamps": true, - "control-center-width": 450, - "control-center-height": 900, - "notification-window-width": 500, - "keyboard-shortcuts": true, - "image-visibility": "when-available", - "transition-time": 120, - "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": { - "spotify": { - "state": "muted", - "app-name": "Spotify" - } - }, - "widgets": [ - "title", - "notifications", - "mpris", - "volume", - "backlight", - "buttons-grid", - "inhibitors" - ], - "widget-config": { - "title": { - "text": "Notifications", - "clear-all-button": true, - "button-text": "Clear" - }, - "inhibitors": { - "text": "Inhibitors" - }, - "dnd": { - "text": "Do Not Disturb" - }, - "label": { - "max-lines": 5, - "text": "Label Text" - }, - "mpris": { - "image-size": 80, - "image-radius": 16, - "blur": true - }, - "volume": { - "label": " ", - "show-per-app": true, - "show-per-app-icon": true, - "collapse-button-label": " ", - "expand-button-label": " " - }, - "backlight": { - "label": " ", - "device": "scrollock", - "subsystem": "leds" - }, - "buttons-grid": { - "actions": [ - { - "label": " Internet", - "type": "toggle", - "active": false, - "command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/internet-toggle.sh; Toggle_state'", - "update-command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/internet-toggle.sh; Update_state'" - }, - { - "label": " Bluetooth", - "type": "toggle", - "active": false, - "command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/bluetooth-toggle.sh; Toggle_state'", - "update-command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/bluetooth-toggle.sh; Update_state'" - }, - { - "label": "󰒲 DND", - "type": "toggle", - "command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/dnd-toggle.sh; Toggle_state'", - "update-command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/dnd-toggle.sh; Update_state'" - }, - { - "label": "󰸉 Wallpaper", - "type": "normal", - "command": "bash -c 'swaync-client -cp; bash $HOME/.config/hypr/scripts/change-wallpaper.sh'" - }, - { - "label": " Screenshot", - "type": "normal", - "command": "sh -c 'swaync-client -cp; hyprshot -m region -o $HOME/Screenshots'" - }, - { - "label": "󰗽 Logout", - "type": "normal", - "command": "wlogout -b 5" - } - ] - } - } -} diff --git a/swaync/configSchema.json b/swaync/configSchema.json deleted file mode 100644 index f42871a..0000000 --- a/swaync/configSchema.json +++ /dev/null @@ -1,621 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "title": "SwayNotificationCenter JSON schema", - "type": "object", - "additionalProperties": false, - "properties": { - "$schema": { - "type": "string", - "description": "Pointer to the schema against which this document should be validated." - }, - "positionX": { - "type": "string", - "description": "Horizontal position of control center and notification window", - "default": "right", - "enum": ["right", "left", "center"] - }, - "layer": { - "type": "string", - "description": "Layer of notification window", - "default": "overlay", - "enum": ["background", "bottom", "top", "overlay"] - }, - "layer-shell": { - "type": "boolean", - "description": "Wether or not the windows should be opened as layer-shell surfaces. Note: Requires swaync restart to apply", - "default": true - }, - "cssPriority": { - "type": "string", - "description": "Which GTK priority to use when loading the default and user CSS files. Pick \"user\" to override XDG_CONFIG_HOME/gtk-3.0/gtk.css", - "default": "application", - "enum": ["application", "user"] - }, - "positionY": { - "type": "string", - "description": "Vertical position of control center and notification window", - "default": "top", - "enum": ["top", "center", "bottom"] - }, - "control-center-positionX": { - "type": "string", - "description": "Optional: Horizontal position of the control center. Supersedes positionX if not set to `none`", - "default": "none", - "enum": ["right", "left", "center", "none"] - }, - "control-center-positionY": { - "type": "string", - "description": "Optional: Vertical position of the control center. Supersedes positionY if not set to `none`", - "default": "none", - "enum": ["top", "bottom", "none"] - }, - "control-center-margin-top": { - "type": "integer", - "description": "The margin (in pixels) at the top of the control center. 0 to disable", - "default": 0 - }, - "control-center-margin-bottom": { - "type": "integer", - "description": "The margin (in pixels) at the bottom of the control center. 0 to disable", - "default": 0 - }, - "control-center-margin-right": { - "type": "integer", - "description": "The margin (in pixels) at the right of the control center. 0 to disable", - "default": 0 - }, - "control-center-margin-left": { - "type": "integer", - "description": "The margin (in pixels) at the left of the control center. 0 to disable", - "default": 0 - }, - "control-center-layer": { - "type": "string", - "description": "Layer of control center window", - "default": "none", - "enum": ["background", "bottom", "top", "overlay", "none"] - }, - "control-center-exclusive-zone": { - "type": "boolean", - "description": "Whether or not the control center should follow the compositors exclusive zones. An example would be setting it to \"false\" to cover your panel/dock.", - "default": true - }, - "notification-2fa-action": { - "type": "boolean", - "description": "If each notification should display a 'COPY \"1234\"' action", - "default": true - }, - "notification-inline-replies": { - "type": "boolean", - "description": "If notifications should display a text field to reply if the sender requests it. NOTE: Replying in popup notifications is only available if the compositor supports GTK Layer-Shell ON_DEMAND keyboard interactivity.", - "default": false - }, - "notification-icon-size": { - "type": "integer", - "description": "The notification icon size (in pixels). The app icon size is 1/3", - "default": 64, - "minimum": 16 - }, - "notification-body-image-height": { - "type": "integer", - "description": "The notification body image height (in pixels)", - "default": 100, - "minimum": 100 - }, - "notification-body-image-width": { - "type": "integer", - "description": "The notification body image width (in pixels)", - "default": 200, - "minimum": 200 - }, - "timeout": { - "type": "integer", - "description": "The notification timeout for notifications with normal priority", - "default": 10 - }, - "timeout-low": { - "type": "integer", - "description": "The notification timeout for notifications with low priority", - "default": 5 - }, - "timeout-critical": { - "type": "integer", - "description": "The notification timeout for notifications with critical priority. 0 to disable", - "default": 0 - }, - "notification-window-width": { - "type": "integer", - "description": "Width of the notification in pixels", - "default": 500 - }, - "fit-to-screen": { - "type": "boolean", - "description": "If the control center should expand to both edges of the screen", - "default": true - }, - "relative-timestamps": { - "type": "boolean", - "description": "Display notification timestamps relative to now e.g. \"26 minutes ago\". If false, a local iso8601-formatted absolute timestamp is displayed.", - "default": true - }, - "control-center-height": { - "type": "integer", - "description": "Height of the control center in pixels. Ignored when 'fit-to-screen' is set to 'true'", - "default": 600, - "minimum": 300 - }, - "control-center-width": { - "type": "integer", - "description": "Width of the control center in pixels", - "default": 500, - "minimum": 300 - }, - "keyboard-shortcuts": { - "type": "boolean", - "description": "If control center should use keyboard shortcuts", - "default": true - }, - "image-visibility": { - "type": "string", - "description": "The notification image visibility when no icon is available.", - "default": "when-available", - "enum": ["always", "when-available", "never"] - }, - "transition-time": { - "type": "integer", - "description": "The notification animation duration. 0 to disable", - "default": 200 - }, - "hide-on-clear": { - "type": "boolean", - "description": "Hides the control center after pressing \"Clear All\"", - "default": false - }, - "hide-on-action": { - "type": "boolean", - "description": "Hides the control center when clicking on notification action", - "default": true - }, - "script-fail-notify": { - "type": "boolean", - "description": "Sends a notification if a script fails to run", - "default": true - }, - "scripts": { - "type": "object", - "description": "Which scripts to check and potentially run for every notification. If the notification doesn't include one of the properties, that property will be ignored. All properties (except for exec) use regex. If all properties match the given notification, the script will be run. Only the first matching script will be run.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^.{1,}$": { - "type": "object", - "description": "Your script object.", - "required": ["exec"], - "minProperties": 2, - "additionalProperties": false, - "properties": { - "exec": { - "type": "string", - "description": "The script to run. Can also run regular shell commands." - }, - "app-name": { - "type": "string", - "description": "The app-name. Uses Regex." - }, - "desktop-entry": { - "type": "string", - "description": "The desktop-entry. Uses Regex." - }, - "summary": { - "type": "string", - "description": "The summary of the notification. Uses Regex." - }, - "body": { - "type": "string", - "description": "The body of the notification. Uses Regex." - }, - "urgency": { - "type": "string", - "description": "The urgency of the notification.", - "default": "Normal", - "enum": ["Low", "Normal", "Critical"] - }, - "category": { - "type": "string", - "description": "Which category the notification belongs to. Uses Regex." - }, - "run-on": { - "type": "string", - "description": "Whether to run the script on an action being activated, or when the notification is received.", - "enum": ["action", "receive"], - "default": "receive" - } - } - } - } - }, - "notification-visibility": { - "type": "object", - "description": "Set the visibility of each incoming notification. If the notification doesn't include one of the properties, that property will be ignored. All properties (except for state) use regex. If all properties match the given notification, the notification will be follow the provided state. Only the first matching object will be used.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^.{1,}$": { - "type": "object", - "description": "Your script object.", - "required": ["state"], - "minProperties": 2, - "additionalProperties": false, - "properties": { - "state": { - "type": "string", - "description": "The notification visibility state.", - "default": "enabled", - "enum": ["ignored", "muted", "enabled", "transient"] - }, - "app-name": { - "type": "string", - "description": "The app-name. Uses Regex." - }, - "desktop-entry": { - "type": "string", - "description": "The desktop-entry. Uses Regex." - }, - "summary": { - "type": "string", - "description": "The summary of the notification. Uses Regex." - }, - "body": { - "type": "string", - "description": "The body of the notification. Uses Regex." - }, - "urgency": { - "type": "string", - "description": "The urgency of the notification.", - "default": "Normal", - "enum": ["Low", "Normal", "Critical"] - }, - "override-urgency": { - "type": "string", - "description": "The new urgency of the notification (optional)", - "default": "unset", - "enum": ["unset", "low", "normal", "critical"] - }, - "category": { - "type": "string", - "description": "Which category the notification belongs to. Uses Regex." - } - } - } - } - }, - "widgets": { - "type": "array", - "description": "Which order and which widgets to display. If the \"notifications\" widget isn't specified, it will be placed at the bottom.", - "default": ["inhibitors", "title", "dnd", "notifications"], - "items": { - "type": "string", - "$comment": "Sadly can't use regex and enums at the same time. Fix in the future?", - "pattern": "^[a-zA-Z0-9_-]{1,}(#[a-zA-Z0-9_-]{1,}){0,1}?$" - } - }, - "widget-config": { - "type": "object", - "description": "Configure specific widget properties.", - "additionalProperties": false, - "$comment": "New widgets go here in \"patternProperties\" ↓", - "patternProperties": { - "^title(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$comment": "References the widget structure from \"widgets\" below", - "$ref": "#/widgets/title" - }, - "^dnd(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$ref": "#/widgets/dnd" - }, - "^label(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$ref": "#/widgets/label" - }, - "^mpris(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$ref": "#/widgets/mpris" - }, - "^buttons-grid(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$ref": "#/widgets/buttons-grid" - }, - "^menubar(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$ref": "#/widgets/menubar" - }, - "^volume(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$ref": "#/widgets/volume" - }, - "^backlight(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$ref": "#/widgets/backlight" - }, - "^inhibitors(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "$comment": "References the widget structure from \"widgets\" below", - "$ref": "#/widgets/inhibitors" - } - } - } - }, - "widgets": { - "$comment": "New widgets go here", - "title": { - "type": "object", - "description": "Control Center Title Widget", - "additionalProperties": false, - "properties": { - "text": { - "type": "string", - "description": "The title of the widget", - "default": "Notifications" - }, - "clear-all-button": { - "type": "boolean", - "description": "Wether to display a \"Clear All\" button", - "default": true - }, - "button-text": { - "type": "string", - "description": "\"Clear All\" button text", - "default": "Clear All" - } - } - }, - "dnd": { - "type": "object", - "description": "Control Center Do Not Disturb Widget", - "additionalProperties": false, - "properties": { - "text": { - "type": "string", - "description": "The title of the widget", - "default": "Do Not Disturb" - } - } - }, - "label": { - "type": "object", - "description": "A generic widget that allows the user to add custom text", - "additionalProperties": false, - "properties": { - "text": { - "type": "string", - "description": "The text content of the widget", - "default": "Label Text" - }, - "max-lines": { - "type": "integer", - "description": "The maximum lines", - "default": 5 - } - } - }, - "mpris": { - "type": "object", - "description": "A widget that displays multiple music players", - "additionalProperties": false, - "properties": { - "image-size": { - "type": "integer", - "description": "The size of the album art", - "default": 96 - }, - "image-radius": { - "type": "integer", - "description": "The border radius of the album art. Will be overriden by setting the border-radius in the style.css for the \".widget-mpris-album-art\" class", - "default": 12 - }, - "blur": { - "type": "boolean", - "description": "Apply the artwork as the MPRIS background and blur it", - "default": true - } - } - }, - "buttons-grid": { - "type": "object", - "description": "A widget to add a grid of buttons that execute shell commands", - "additionalProperties": false, - "properties": { - "actions": { - "type": "array", - "description": "A list of actions containing a label and a command", - "items": { - "type": "object", - "properties": { - "label": { - "type": "string", - "description": "Text to be displayed in button", - "default": "label" - }, - "command": { - "type": "string", - "description": "Command to be executed on click", - "default": "" - }, - "type": { - "type": "string", - "description": "Type of the button; toggle buttons receive the .active css class and an env variable 'SWAYNC_TOGGLE_STATE' is set. See example in the default config.json", - "default": "normal", - "enum": ["normal", "toggle"] - }, - "update-command": { - "type": "string", - "description": "Command to be executed on visibility change of cc to update the active state of the toggle button (should echo true or false)", - "default": "" - }, - "active": { - "type": "boolean", - "description": "Wether the toggle button is active as default or not", - "default": false - } - } - } - } - } - }, - "menubar": { - "type": "object", - "description": "A bar that contains action-buttons and buttons to open a dropdown with action-buttons", - "additionalProperties": false, - "patternProperties": { - "^menu(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "type": "object", - "description": "A button that opens a dropdown with action-buttons", - "additionalProperties": false, - "properties": { - "label": { - "type": "string", - "description": "Text to be displayed in button", - "default": "Menu" - }, - "position": { - "type": "string", - "description": "Horizontal position of the button in the bar", - "default": "right", - "enum": ["right", "left"] - }, - "animation-type": { - "type": "string", - "default": "slide_down", - "description": "Animation type for menu", - "enum": ["slide_down", "slide_up", "none"] - }, - "animation-duration":{ - "type": "integer", - "default": 250, - "description": "Duration of animation in milliseconds" - }, - "actions": { - "$ref" : "#/widgets/buttons-grid/properties/actions" - } - } - }, - "^buttons(#[a-zA-Z0-9_-]{1,}){0,1}?$": { - "type": "object", - "description": "A list of action-buttons to be displayed in the topbar", - "additionalProperties": false, - "properties": { - "position": { - "type": "string", - "description": "Horizontal position of the button in the bar", - "default": "right", - "enum": ["right", "left"] - }, - "actions": { - "$ref" : "#/widgets/buttons-grid/properties/actions" - } - } - } - } - }, - "volume": { - "type": "object", - "description": "Slider to control pulse volume", - "additionalProperties": false, - "properties": { - "label": { - "type": "string", - "description": "Text displayed in front of the volume slider", - "default": "Volume" - }, - "show-per-app": { - "type": "boolean", - "default": false, - "description": "Show per app volume control" - }, - "show-per-app-icon": { - "type": "boolean", - "default": true, - "description": "Show application icon in per app control" - }, - "show-per-app-label": { - "type": "boolean", - "default": false, - "description": "Show application name in per app control" - }, - "empty-list-label": { - "type": "string", - "default": "No active sink input", - "description": "Text displayed when there are not active sink inputs" - }, - "expand-button-label": { - "type": "string", - "default": "⇧", - "description": "Label displayed on button to show per app volume control" - }, - "collapse-button-label": { - "type": "string", - "default": "⇩", - "description": "Label displayed on button to hide per app volume control" - }, - "icon-size": { - "type": "integer", - "default": 24, - "description": "Size of the application icon in per app volume control" - }, - "animation-type": { - "type": "string", - "default": "slide_down", - "description": "Animation type for menu", - "enum": ["slide_down", "slide_up", "none"] - }, - "animation-duration":{ - "type": "integer", - "default": 250, - "description": "Duration of animation in milliseconds" - } - } - }, - "backlight": { - "type": "object", - "description": "Slider to control monitor brightness", - "additionalProperties": false, - "properties": { - "label": { - "type": "string", - "description": "Text displayed in front of the backlight slider", - "default": "Brightness" - }, - "device": { - "type": "string", - "description": "Name of monitor (find possible devices using `ls /sys/class/backlight` or `ls /sys/class/leds`)", - "default": "intel_backlight" - }, - "subsystem": { - "type": "string", - "description": "Kernel subsystem for brightness control", - "default": "backlight", - "enum": ["backlight", "leds"] - }, - "min": { - "type": "integer", - "default": 0, - "description": "Lowest possible value for brightness" - } - } - }, - "inhibitors": { - "type": "object", - "description": "Control Center Inhibitors Widget", - "additionalProperties": false, - "properties": { - "text": { - "type": "string", - "description": "The title of the widget", - "default": "Inhibitors" - }, - "clear-all-button": { - "type": "boolean", - "description": "Wether to display a \"Clear All\" button", - "default": true - }, - "button-text": { - "type": "string", - "description": "\"Clear All\" button text", - "default": "Clear All" - } - } - } - } -} diff --git a/swaync/scripts/control-center/bluetooth-toggle.sh b/swaync/scripts/control-center/bluetooth-toggle.sh deleted file mode 100755 index d8c71c5..0000000 --- a/swaync/scripts/control-center/bluetooth-toggle.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -Update_state() { - if [[ $(bluetoothctl show | grep "Powered" | sed "s/Powered: //" | xargs) == "yes" ]] - then - echo true - else - echo false - fi -} - -Toggle_state() { - if [[ $SWAYNC_TOGGLE_STATE == "true" ]] - then - bluetoothctl power on - else - bluetoothctl power off - fi -} diff --git a/swaync/scripts/control-center/dnd-toggle.sh b/swaync/scripts/control-center/dnd-toggle.sh deleted file mode 100644 index ff4a1bb..0000000 --- a/swaync/scripts/control-center/dnd-toggle.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -Update_state() { - if [[ $(swaync-client -D) == true ]] - then - echo true - else - echo false - fi -} - -Toggle_state() { - if [[ $SWAYNC_TOGGLE_STATE == true ]] - then - swaync-client -dn - else - swaync-client -df - fi -} diff --git a/swaync/scripts/control-center/internet-toggle.sh b/swaync/scripts/control-center/internet-toggle.sh deleted file mode 100755 index 29b204a..0000000 --- a/swaync/scripts/control-center/internet-toggle.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -Update_state() { - if [[ $(nmcli n c) =~ "partial" ]] || [[ $(nmcli n c) =~ "full" ]] - then - echo true - else - echo false - fi -} - -Toggle_state() { - if [[ $SWAYNC_TOGGLE_STATE == true ]] - then - nmcli n on - else - nmcli n off - fi -} diff --git a/swaync/scripts/control-center/recording-toggle.sh b/swaync/scripts/control-center/recording-toggle.sh deleted file mode 100644 index 887c848..0000000 --- a/swaync/scripts/control-center/recording-toggle.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -# Bash Script made by retrozinndev -# Dotfiles: https://github.com/retrozinndev/Hyprland-Dots - -# This script is not ready to use yet. - -local REC_DIR="/tmp/screenRecording" -local REC_FILE="$REC_DIR/recording_swaync" - -Update_state() { - if [[ -f $REC_FILE ]] - then - echo true - else - echo false - fi -} - -Toggle_state() { - if [[ $SWAYNC_TOGGLE_STATE == true ]] - then - Start_recording - else - Stop_recording - fi -} - -Start_recording() { -} - -Stop_recording() { -} - -Check_if_recording() { -} diff --git a/swaync/style.css b/swaync/style.css deleted file mode 100644 index c6161a2..0000000 --- a/swaync/style.css +++ /dev/null @@ -1,17 +0,0 @@ - -@import "_colors.css"; -@import "_notifications.css"; -@import "_control-center.css"; - -* { - all: unset; - font-size: 14px; - font-family: Cantarell, otf-font-awesome, "Noto Sans CJK", sans-serif; - transition: 160ms ease-in; -} - -tooltip { - background: shade(@background-alt, .8); - border: .5px solid shade(@highlight, .8); - border-radius: 6px; -} diff --git a/wlogout/layout b/wlogout/layout deleted file mode 100644 index d9719e6..0000000 --- a/wlogout/layout +++ /dev/null @@ -1,30 +0,0 @@ -{ - "label" : "lock", - "action" : "hyprlock", - "text" : "Lock", - "keybind" : "l" -} -{ - "label" : "shutdown", - "action" : "systemctl poweroff", - "text" : "Shutdown", - "keybind" : "s" -} -{ - "label" : "suspend", - "action" : "systemctl suspend", - "text" : "Suspend", - "keybind" : "u" -} -{ - "label" : "reboot", - "action" : "systemctl reboot", - "text" : "Reboot", - "keybind" : "r" -} -{ - "label" : "logout", - "action" : "loginctl kill-user $(whoami)", - "text" : "Logout", - "keybind" : "e" -} diff --git a/wlogout/style.css b/wlogout/style.css deleted file mode 100644 index 0798754..0000000 --- a/wlogout/style.css +++ /dev/null @@ -1,80 +0,0 @@ - -@import "../../.cache/wal/colors-wlogout.css"; - - -* { - all: unset; - background-image: none; - background-repeat: no-repeat; - transition: 100ms ease-in-out; -} - -window { - background: transparent; -} - -button { - border-radius: 16px; - background-position: center 40%; - background-size: 35%; - margin: 0 6px; - font-size: 1.25em; - font-weight: 700; -} - -window > * > * { - padding: 140px 60px; -} - -button:first-child { - margin-right: 6px; -} - -button:last-child { - margin-left: 6px; -} - -button:focus, -button:hover { - background-color: shade(@color1, .75); - background-size: 40%; - background-position: center; -} - -button:focus:hover { - background-color: @color2; -} - -button:active { - background-color: @color1; -} - -button > label { - font-size: 1.8em; - color: transparent; -} - -button:hover > label, -button:focus > label { - color: @foreground; -} - -#lock { - background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png")); -} - -#logout { - background-image: image(url("/usr/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png")); -} - -#suspend { - background-image: image(url("/usr/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png")); -} - -#shutdown { - background-image: image(url("/usr/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png")); -} - -#reboot { - background-image: image(url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png")); -}