3 votes

Can I generate a custom notification? [solved]

I found an answer that works for me. I can use the command notify-send More info at: https://wiki.archlinux.org/index.php/Desktop_notifications
Aijalon-2's user avatar
1 vote

How to write an alias to accept variables

So dumb of me. I achieved my goal by adding this line to the .zshrc: cluster() { ssh root@"$1".example.com; } And then did a source .zshrc Running cluster c1232-node3 executes ssh root@...
Saurabh Lambe's user avatar
1 vote
Accepted

How to execute sudo commands after login?

If you have a laptop, you can use TLP to automatically set it. If you prefer a more simple method, you can create a systemd service that will execute at startup. sudo io.elementary.code /etc/systemd/...
Maccer's user avatar
  • 1,984
1 vote

How to add a script to start up sequence so that it applies before the actual login screen?

There are a couple of ways to do this. You can either create a cron job or add your script to /etc/rc.d/rc.local. This site has more information: https://www.tecmint.com/auto-execute-linux-scripts-...
Paul's user avatar
  • 834
1 vote

Run a script on shutdown

Unfortunately I don't know of a real graphical way to achieve that. But because elementary is based on Ubuntu and thus uses systemd, you should be able to do it with a systemd service. Basically ...
Michael Kanis's user avatar
1 vote
Accepted

Cannot bind keyboard shortcut to .sh

I found out that it was actually running the script but not showing the terminal. I validated this by launching chrome from inside the bash script -- so that was the issue.
schmoopy's user avatar
  • 137
1 vote

Detecting USB Insertion/Removal

In modern Linux kernels, you can use udev to detect removable disks. You can read about udev at: Ubuntu Manpages I'm not a Python expert, but i have find a module about using udev, so you can try ...
bitseater's user avatar
  • 2,278
1 vote

Network Manager Restart Script Issue

well there is also another way you could do this ... but I am not sure that it is "proper" ... need to think about that create your bash script make it executable by ANYONE sudo chown root:root {you ...
george Barbaz's user avatar
1 vote

Network Manager Restart Script Issue

You have used sudo and the script keep waiting for a password. You must use gksu to open a dialog and enter your password.
bitseater's user avatar
  • 2,278

Only top scored, non community-wiki answers of a minimum length are eligible