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

Installation successful but icons and buttons don't work #170

Open
0xSnoxzy opened this issue Nov 13, 2022 · 2 comments
Open

Installation successful but icons and buttons don't work #170

0xSnoxzy opened this issue Nov 13, 2022 · 2 comments

Comments

@0xSnoxzy
Copy link

Hello, i followed the installation from SavvyNik's video and all went good, but after the installation when i went to press the buttons on the top (like the battery on the top right of the screen or the terminal icon on the top left) nothing worked, even when pressing the super-key+P to open the dashboard all the things didn't worked, like when pressing the power off button or the log out icon, even the search bar doesn't work. i'm a newbie with xmonad and linux ricing and arch in general so i would love some help. sorry for bad english, it isn't my primary language.

@FlyingWolf11
Copy link

FlyingWolf11 commented Nov 23, 2022

@0xSnoxzy
The buttons on the top right don't do anything, except the ones that are references to sites like reddit. The battery symbol just shows the battery, you won't get something more specific. The buttons on the top left will switch your workspaces. The icons are just an example of how you could manage your different workspaces, e.g. browser on the workspace with a firefox icon. I haven't been able to have all the buttons in the dashboard working, but I was able to get the power buttons to work. You'll need to install the opendoas package and make a doas.conf file in /etc. Paste in there:

permit :wheel
permit nopass :wheel as root cmd /sbin/poweroff
permit nopass :wheel as root cmd /sbin/reboot

The go into ~/bin/powermenu.sh and change line 65 to doas /sbin/poweroff and line 75 to doas /sbin/reboot.

Now install the polkit package and create a .rules file with any name in /etc/polkit-1/rules-d/ and paste in there:

polkit.addRule(function(action, subject) {
            if ((action.id == "org.freedesktop.login1.suspend-mul triple-sessions")
                 && subject.isInGroup("wheel")) {
                          return polkit.Result.YES;             
            }
});

Now you should reboot your system and the buttons could potentially work.
I'm also very new to this but this is what worked for me. I hope this works for you too.

@Axarva
Copy link
Owner

Axarva commented Jan 26, 2023

@FlyingWolf11 thanks for helping out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants