1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
--- a/nwg_shell/skel/config/sway/autostart
+++ b/nwg_shell/skel/config/sway/autostart
@@ -4,6 +4,5 @@
exec_always nwg-autotiling
exec_always nwg-drawer -r -s preset-0.css -term foot
exec_always nwg-panel -c preset-0 -s preset-0.css
-exec_always nwg-shell-check-updates
exec nwg-look -a
exec nwg-shell-config
--- a/nwg_shell/skel/config/nwg-bar/bar.json
+++ b/nwg_shell/skel/config/nwg-bar/bar.json
@@ -11,12 +11,12 @@
},
{
"label": "Reboot",
- "exec": "systemctl reboot",
+ "exec": "loginctl reboot",
"icon": "/usr/share/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
- "exec": "systemctl -i poweroff",
+ "exec": "loginctl poweroff",
"icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
}
]
--- a/nwg_shell/skel/config/nwg-panel/preset-0
+++ b/nwg_shell/skel/config/nwg-panel/preset-0
@@ -81,11 +81,11 @@
},
{
"name": "Restart",
- "cmd": "systemctl reboot"
+ "cmd": "loginctl reboot"
},
{
"name": "Shutdown",
- "cmd": "systemctl -i poweroff"
+ "cmd": "loginctl poweroff"
}
]
},
--- a/nwg_shell/skel/config/nwg-panel/preset-1
+++ b/nwg_shell/skel/config/nwg-panel/preset-1
@@ -83,11 +83,11 @@
},
{
"name": "Restart",
- "cmd": "systemctl reboot"
+ "cmd": "loginctl reboot"
},
{
"name": "Shutdown",
- "cmd": "systemctl -i poweroff"
+ "cmd": "loginctl poweroff"
}
]
},
--- a/nwg_shell/skel/config/nwg-panel/preset-2
+++ b/nwg_shell/skel/config/nwg-panel/preset-2
@@ -103,11 +103,11 @@
},
{
"name": "Restart",
- "cmd": "systemctl reboot"
+ "cmd": "loginctl reboot"
},
{
"name": "Shutdown",
- "cmd": "systemctl -i poweroff"
+ "cmd": "loginctl poweroff"
}
]
},
@@ -150,8 +150,8 @@
"menu-start-settings": {
"cmd-lock": "swaylock -f -c 000000",
"cmd-logout": "swaymsg exit",
- "cmd-restart": "systemctl reboot",
- "cmd-shutdown": "systemctl -i poweroff",
+ "cmd-restart": "loginctl reboot",
+ "cmd-shutdown": "loginctl poweroff",
"autohide": true,
"file-manager": "thunar",
"height": 0,
--- a/nwg_shell/skel/config/nwg-panel/preset-3
+++ b/nwg_shell/skel/config/nwg-panel/preset-3
@@ -79,11 +79,11 @@
},
{
"name": "Restart",
- "cmd": "systemctl reboot"
+ "cmd": "loginctl reboot"
},
{
"name": "Shutdown",
- "cmd": "systemctl -i poweroff"
+ "cmd": "loginctl poweroff"
}
]
},
--- a/nwg_shell/skel/config/sway/config
+++ b/nwg_shell/skel/config/sway/config
@@ -36,10 +36,9 @@
############### Autostart ##################
-exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
- dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
-exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
+ dbus-update-activation-environment --session DISPLAY WAYLAND_DISPLAY SWAYSOCK
+exec /usr/libexec/polkit-gnome-authentication-agent-1
exec ~/.azotebg
### Turn off screen on lid closed
|