Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [script]

The tag has no usage guidance.

2
votes
1answer
35 views

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

So I have this script that changes the resolution of on of my monitors that works and that I was able to run on login by adding it in settings»Applications»Startup. The only problem is that I need it ...
0
votes
0answers
20 views

how to ship executable scripts

My applications (Bookworm and Nutty) need some executable shell scripts to be called from the UI for some functionalities. I was wondering what is the best way to ship these executables: 1- Should I ...
1
vote
1answer
45 views

Run a script on shutdown

I have a very simple script that I want to run every time I shut down my computer. How can the script be automatically executed once I press the 'Shut Down' or 'Restart' button?
0
votes
0answers
15 views

Script will not run properly if ran with a hotkey combination set in “Settings -> Keyboard”

While running Loki 0.4.1, I've made a script to switch my video and audio output devices as well as the DPI using gsettings and some xrandr, pacmd and pactl commands. I've wired this script to Super+...
0
votes
1answer
50 views

Can I generate a custom notification? [solved]

Is there a way to generate a custom notification, and how? I have a bash script that performs rsync backups, and this script runs as a cronjob. I want to have that script generate a notification to ...
0
votes
2answers
91 views

Cannot bind keyboard shortcut to .sh

elementary OS 0.4.1 Loki I am trying to create a keybinding (like CTRL+Z) to a script file, but it never executes. Steps: System Settings -> Keyboard -> Shortcuts -> Custom -> Add I ...
0
votes
1answer
418 views

Detecting USB Insertion/Removal

Is there any way to detect when a usb flash drive/stick/etc gets plugged in a usb port? To be more specific, I need to have a way to detect usb insertion/removal and use this information in a python ...
0
votes
2answers
117 views

Network Manager Restart Script Issue

I've created a script to restart the network manager using #!/bin/bash sudo service network-manager restart I've named the file network-restart.sh and ran chmod +x network-manager.sh to set ...
1
vote
0answers
80 views

Why doesn't Pantheon Files remember default application for scripts?

The executable scripts are always executed if clicked in Pantheon Files, even if the default application to be used is changed for them to a text editor under Properties-Open with. I have noticed ...