Replace all gnome-polkit by kde-polkit + update other

This commit is contained in:
Hydroxycarbamide 2024-06-02 12:44:51 +02:00
parent 704c8028b9
commit 68314f7bae
9 changed files with 172 additions and 99 deletions

View file

@ -145,11 +145,12 @@ animations {
dwindle { dwindle {
pseudotile = true # enable pseudotiling on dwindle pseudotile = true # enable pseudotiling on dwindle
no_gaps_when_only = 1
} }
master { master {
always_center_master = false always_center_master = false
mfact = 0.60 mfact = 0.55
no_gaps_when_only = 1 no_gaps_when_only = 1
} }
@ -161,7 +162,7 @@ misc {
# vfr = true # vfr = true
# animate_mouse_windowdragging = true # animate_mouse_windowdragging = true
focus_on_activate = true focus_on_activate = false
mouse_move_enables_dpms = true mouse_move_enables_dpms = true
key_press_enables_dpms = true key_press_enables_dpms = true
@ -215,7 +216,7 @@ windowrulev2 = center, title:^(Move files)$
# windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. # windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
# transparency # transparency
windowrulev2 = opacity 1.0 override 0.9 override, class:^(kitty|foot|footclient|floating-foot|VSCodium|Code)$ windowrulev2 = opacity 1.0 override 0.9 override, class:^(kitty|foot|footclient|floating-foot|VSCodium|Code|neovide)$
# 1 terminal # 1 terminal
windowrulev2 = workspace 1, class:^(kitty|foot|footclient)$ windowrulev2 = workspace 1, class:^(kitty|foot|footclient)$
@ -464,9 +465,10 @@ plugin {
columns = 2 columns = 2
gap_size = 5 gap_size = 5
bg_col = rgb(111111) bg_col = rgb(111111)
workspace_method = center current # [center/first] [workspace] e.g. first 1 or center m+1 workspace_method = first 1 # [center/first] [workspace] e.g. first 1 or center m+1
enable_gesture = true # laptop touchpad, 4 fingers enable_gesture = true # laptop touchpad
gesture_fingers = 3 # 3 or 4
gesture_distance = 300 # how far is the "max" gesture_distance = 300 # how far is the "max"
gesture_positive = true # positive = swipe down. Negative = swipe up. gesture_positive = true # positive = swipe down. Negative = swipe up.
} }
@ -509,5 +511,6 @@ exec-once = wl-paste --type image --watch cliphist store #Stores only image data
exec-once = systemctl start --user foot-server exec-once = systemctl start --user foot-server
exec-once = systemctl start --user sunshine exec-once = systemctl start --user sunshine
exec-once = flatpak run me.kozec.syncthingtk -m & exec-once = flatpak run me.kozec.syncthingtk -m &
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & # exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
exec-once = /usr/lib/polkit-kde-authentication-agent-1 &
# exec-once = hyprpm reload -n # exec-once = hyprpm reload -n

View file

@ -1,6 +1,7 @@
profile { profile {
output HDMI-A-1 { output HDMI-A-1 {
mode 1920x1080@60 mode 1920x1080@60
adaptive_sync off
position 1920,0 position 1920,0
} }
@ -13,6 +14,7 @@ profile {
profile { profile {
output DP-1 { output DP-1 {
mode 1920x1080@144.001007 mode 1920x1080@144.001007
adaptive_sync off
position 0,0 position 0,0
} }
} }

View file

@ -0,0 +1,66 @@
#!/bin/bash
# Number of tests
NUM_TESTS=5
# Counter for correct answers
correct_answers=0
# Default output variable (can be set through --output option)
output=""
# Parse command line arguments for --output
while [[ "$1" != "" ]]; do
case $1 in
--output ) shift
output=$1
;;
* ) echo "Invalid option: $1"
exit 1
esac
shift
done
# Ensure output is set
if [ -z "$output" ]; then
echo "Usage: $0 --output <output-name>"
exit 1
fi
# Function to activate or deactivate adaptive_sync
toggle_adaptive_sync() {
if [ "$1" -eq 1 ]; then
wlr-randr --output "$output" --adaptive-sync enabled
else
wlr-randr --output "$output" --adaptive-sync disabled
fi
}
# Run the tests
for ((i=1; i<=NUM_TESTS; i++)); do
# Randomize adaptive_sync (0 for off, 1 for on)
adaptive_sync_state=$((RANDOM % 2))
# Toggle adaptive_sync
toggle_adaptive_sync $adaptive_sync_state
# Ask user for the current state
echo "Is adaptive_sync enabled on $output? (yes/no)"
read user_input
# Convert user input to lowercase
user_input=$(echo "$user_input" | tr '[:upper:]' '[:lower:]')
# Determine the correct answer
if [ $adaptive_sync_state -eq 1 ] && [ "$user_input" == "yes" ]; then
correct_answers=$((correct_answers + 1))
elif [ $adaptive_sync_state -eq 0 ] && [ "$user_input" == "no" ]; then
correct_answers=$((correct_answers + 1))
fi
done
# Display the number of correct answers
echo "You got $correct_answers out of $NUM_TESTS correct."
# Reset adaptive_sync to a default state (optional)
# wlr-randr --output $output --adaptive-sync off

@ -1 +1 @@
Subproject commit 4e3a087d14758737717dfc8ce2f2b169eb17fb61 Subproject commit 473ad7436c0fe5fe96794cfd11e02cb7ae8408ee

View file

@ -184,11 +184,17 @@ riverctl border-width 2
# Set the default layout generator to be rivertile and start it. # Set the default layout generator to be rivertile and start it.
# River will send the process group of the init executable SIGTERM on exit. # River will send the process group of the init executable SIGTERM on exit.
riverctl default-layout rivertile riverctl default-layout rivertile
rivertile -view-padding 4 -outer-padding 8 & rivertile -view-padding 6 -outer-padding 10 &
rivertile smart-padding 0, \
view-padding 6, \
outer-padding 10, &
# cursor # cursor
riverctl set-cursor-warp on-focus-change riverctl set-cursor-warp on-focus-change
riverctl xcursor-theme Adwaita 24 riverctl xcursor-theme Qogir-dark 24
riverctl focus-follows-cursor always riverctl focus-follows-cursor always
@ -281,10 +287,10 @@ kdeconnect-indicator &
## osd ## osd
swayosd-server & swayosd-server &
# syncthing ## syncthing
flatpak run me.kozec.syncthingtk -m & flatpak run me.kozec.syncthingtk -m &
# systemctl restarts ## systemctl restarts
systemctl start --user foot-server systemctl start --user foot-server
systemctl start --user sunshine systemctl start --user sunshine
@ -292,9 +298,10 @@ systemctl start --user sunshine
wl-paste --type text --watch cliphist store & #Stores only text data wl-paste --type text --watch cliphist store & #Stores only text data
wl-paste --type image --watch cliphist store & #Stores only image data wl-paste --type image --watch cliphist store & #Stores only image data
# polkit
## /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
/usr/lib/polkit-kde-authentication-agent-1
## lock ## lock
swayidle before-sleep 'loginctl lock-session' lock '/home/eric/.config/hypr/bsplock' swayidle before-sleep 'loginctl lock-session' lock '/home/eric/.config/hypr/bsplock'
# polkit
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &

View file

@ -389,7 +389,7 @@ mouse_warping container
# cursor # cursor
# set $my_cursor Qogir set $my_cursor Qogir-dark
set $my_cursor_size 24 set $my_cursor_size 24
seat seat0 xcursor_theme $my_cursor $my_cursor_size seat seat0 xcursor_theme $my_cursor $my_cursor_size
@ -449,7 +449,8 @@ exec systemctl start --user sunshine
exec wl-paste --type text --watch cliphist store exec wl-paste --type text --watch cliphist store
exec wl-paste --type image --watch cliphist store exec wl-paste --type image --watch cliphist store
exec swayidle before-sleep 'loginctl lock-session' lock '/home/eric/.config/hypr/bsplock' exec swayidle before-sleep 'loginctl lock-session' lock '/home/eric/.config/hypr/bsplock'
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & # exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
exec /usr/lib/polkit-kde-authentication-agent-1 &
exec rm -f /tmp/sovpipe && mkfifo /tmp/sovpipe && tail -f /tmp/sovpipe | sov -t 200 -n -c 1 -s $HOME/.config/sov exec rm -f /tmp/sovpipe && mkfifo /tmp/sovpipe && tail -f /tmp/sovpipe | sov -t 200 -n -c 1 -s $HOME/.config/sov
exec nm-applet exec nm-applet
exec dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

View file

@ -1,82 +1,75 @@
{ {
"$schema": "/etc/xdg/swaync/configSchema.json", "$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right", "positionX": "right",
"positionY": "top", "positionY": "top",
"control-center-margin-top": 5, "control-center-margin-top": 5,
"control-center-margin-bottom": 0, "control-center-margin-bottom": 0,
"control-center-margin-right": 5, "control-center-margin-right": 5,
"control-center-margin-left": 0, "control-center-margin-left": 0,
"notification-icon-size": 64, "notification-icon-size": 64,
"notification-body-image-height": 100, "notification-body-image-height": 100,
"notification-body-image-width": 200, "notification-body-image-width": 200,
"timeout": 10, "timeout": 10,
"timeout-low": 5, "timeout-low": 5,
"timeout-critical": 0, "timeout-critical": 0,
"fit-to-screen": false, "fit-to-screen": false,
"control-center-width": 600, "control-center-width": 600,
"control-center-height": 800, "control-center-height": 800,
"notification-window-width": 500, "notification-window-width": 500,
"keyboard-shortcuts": true, "keyboard-shortcuts": true,
"image-visibility": "when-available", "image-visibility": "when-available",
"transition-time": 100, "transition-time": 100,
"hide-on-clear": false, "hide-on-clear": false,
"hide-on-action": true, "hide-on-action": true,
"script-fail-notify": true, "script-fail-notify": true,
"scripts": { "scripts": {
"example-script": { "example-script": {
"exec": "echo 'Do something...'", "exec": "echo 'Do something...'",
"urgency": "Normal" "urgency": "Normal"
} }
}, },
"notification-visibility": { "notification-visibility": {
"Spotify": { "Spotify": {
"state": "muted", "state": "muted",
"urgency": "Low", "urgency": "Low",
"app-name": "Spotify" "app-name": "Spotify"
} }
}, },
"widgets": [ "widgets": ["inhibitors", "title", "dnd", "notifications", "mpris", "volume"],
"inhibitors", "widget-config": {
"title", "inhibitors": {
"dnd", "text": "Inhibitors",
"notifications", "button-text": "Clear All",
"mpris", "clear-all-button": true
"volume" },
], "title": {
"widget-config": { "text": "Notifications",
"inhibitors": { "clear-all-button": true,
"text": "Inhibitors", "button-text": "Clear All"
"button-text": "Clear All", },
"clear-all-button": true "dnd": {
}, "text": "Do Not Disturb"
"title": { },
"text": "Notifications", "label": {
"clear-all-button": true, "max-lines": 5,
"button-text": "Clear All" "text": "Label Text"
}, },
"dnd": { "mpris": {
"text": "Do Not Disturb" "image-size": 96,
}, "image-radius": 12
"label": { },
"max-lines": 5, "buttons-grid": {
"text": "Label Text" "actions": [
}, {
"mpris": { "label": "1"
"image-size": 96, },
"image-radius": 12 {
}, "label": "2"
"buttons-grid": { },
"actions": [ {
{ "label": "3"
"label": "1" }
}, ]
{ }
"label": "2" }
},
{
"label": "3"
}
]
}
}
} }

View file

@ -5,8 +5,8 @@
"height": 32, "height": 32,
"modules-left": [ "modules-left": [
"hyprland/workspaces", "hyprland/workspaces",
//"sway/workspaces#sway" "sway/workspaces#sway",
//"river/tags", "river/tags",
//"river/layout", //"river/layout",
"group/visualisation" "group/visualisation"
@ -243,7 +243,7 @@
}, },
"cpu": { "cpu": {
"interval": 1, "interval": 1,
"max-length": 15, "max-length": 16,
// "format": " {}%", // "format": " {}%",
"format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}", "format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}",
"format-icons": [ "format-icons": [

View file

@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text