-
Notifications
You must be signed in to change notification settings - Fork 6
Scripts
sBrightnessctl
is a wrapper for xbacklight and redshift for easy management with a cool Dunst notification as feedback
-
Increase the brightness by [amount] if specified or the default value otherwise
$ sBrightnessctl increase [amount]
-
Decrease the brightness by [amount] if specified or the default value otherwise
$ sBrightnessctl decrese [amount]
-
Set the brightness to
$ sBrightnessctl set <value>
-
Print the current brightness (used for polybar)
$ sBrightnessctl print
-
Lower the brightness to the minimum
$ sBrightnessctl screensaver
-
Toggle on/off redshift
$ sBrightnessctl redshift toggle
-
Increase the redshift temperature by [amount] if specified or the default value otherwise
$ sBrightnessctl redshift increase [amount]
-
Decrease the redshift temperature by [amount] if specified or the default value otherwise
$ sBrightnessctl redshift decrease [amount]
-
Print the current redshift temperature (used in polybar)
$ sBrightnessctl redshift print
Open sBrightnessctl
with your favorite text editor and edit accordignly
A simple script that restore the redshift status and temperature.
$ ./restoreRedshift.sh
Not needed yet
sBluetoothctl
is a simple wrapper for bluetoothctl
-
Change power status
$ sBluetoothctl power <toggle|on|off>
-
Power on bluetooth if necessary and connect to a device using its UUID (xx:xx:xx:xx:xx:xx) or its device Name (i.e. 'Galaxy buds')
$ sBluetoothctl connect <device UUID|device Name>
Open sBluetoothctl
with your favorite text editor and edit accordignly
sLockscreenctl
is a wrapper for i3lock-color which allows easier customization and more flexibility
-
Lock the screen
$ sLockscreenctl lock
-
Lock the screen and suspend
$ sLockscreenctl suspend
-
textColor
: Change the color of the clock, date and song name (Default: ffffffAA) -
font
: Change the font of the clock, date and song name (Default: "LatoLight") -
backgroundType
: Choose the background type among (Default: blurAndDim)- image: Always show an image as background
- blur: Slightly blur current view and use it as background
- blurAndDim: Blur and dim current view and use it as background (recommended)
-
image
: Specify the path of the ".png" file to use as background image (will be used only if background type is set to image) -
blurStrength
: Specify the blur stregth (will be used only if background type is set to blur ) (Default: 5) -
blur2Strength
: Specify the blur stregth (will be used only if background type is set to blurAndDim ) (Default: 0x10) -
dimStrength
: Specify the dim stregth (will be used only if background type is set to blurAndDim ) (Default: 60%) -
indicatorType
: Choose how to feedback the user input among (Default: circle) Preview- circle: Use a ring
- bars: Use moving bars
-
indicatorPos
: Define the position in pixel (Default: 960:740) -
timeString
: String format for the clock (Default: %H:%M:%S) -
timePos
: Define the position in pixel (Default: 960:540) -
timeSize
: Font size for the clock (Default: 150) -
dateString
: String format for the date (Default: "%A,%d %B") -
datePos
: Define the position in pixel (Default: 960:620) -
timeSize
: Font size for the clock (Default: 30) -
verifyText
: Choose the text to display when checking the password (Default: Verifying...) -
wrongText
: Choose the text to display when typed the wrong password (Default: Wrong!) -
noInputText
: Choose the text to display when the the input field is empty (Default: ...) -
inputTypeColor
: Choose the color for the input feedback when typing(Default: f0544CAA) -
inputDeleteColor
: Choose the color for the input feedback when deleting (Default: ff1010ff) -
greeterSize
: Font size for the greeter (Default: 40) -
greeterText
: Text to show as greeter -
showSongAsGreeter
: Use theplayerctl.sh
script to show current playing song instead of greeter (will override the greeterText if set to true (Default: true) -
stopAllPlayersOnSuspend
: will stop all music players if any, before suspending (Default: true)
-
radius
: The radius of the ring (Default: 90) -
ringWidth
: The width of the ring (Default: 15) -
insideColor
: Color of the inner circle (Default: 00000000) -
insideVerifyingColor
: Color of the inner circle when verifying the password (Default: 00000000) -
insideWrongColor
: Color of the inner circle when typed the wrong password (Default: 00000000) -
ringColor
: Color of the outer ring (Default: 00000055) -
ringVerifyingColor
: Color of the outer ring when verifying the password (Default: f0544c55) -
ringWrongColor
: Color of the outer ring when typed the wrong password (Default: f0544cff) -
separatorColor
: Color of the separator (Default: f0544cff)
-
barDirection
: Select in which direction the bars will grow (Default: 2)- 0 : only grow downwards
- 1 : only grow upwards
- 2 : grow in both direction
-
barMaxHeight
: Maximum height the bars can grow (Default: 100) -
barWidth
: The width of each bar (Default: 25) -
barBaseWidth
: The width of the base of the bars (Default: 1) -
barBaseColor
: The color of the base of the bars (Default: 00000000) -
barStep
: Steps of bars (Default: 1) -
barPeriodicStep
: Speed of bars decaying (Default: 10) -
barPosition
: The position in pixel of the bars (Default: 540)
sMicrophonectl
is a wrapper for amixer made for easier management and with a cool Dunst notification as feedback
-
Increase input volume by [amount] if specified or the default value otherwise
$ sMicrophonectl up [amount]
-
Decrease input volume by [amount] if specified or the default value otherwise
$ sMicrophonectl down [amount]
-
Toggle mute on/off for the microphone
$ sMicrophonectl mute
Open sMicrophonectl
with your favorite text editor and edit accordignly
sVolumectl
is a wrapper for amixer made for easier management and with a cool Dunst notification as feedback
-
Increase speaker/headphone volume by [amount] if specified or the default value otherwise
$ sVolumectl up [amount]
-
Decrease speaker/headphone volume by [amount] if specified or the default value otherwise
$ sVolumectl down [amount]
-
Toggle mute on/off for the speaker/headphone
$ sVolumectl mute
Open sVolumectl
with your favorite text editor and edit accordignly
sPlayerctl
is a wrapper for playerctl made for easier management and with a cool Dunst notification as feedback. Allows custom spotify notifications with also album picture as icon
-
Toggle between play and pause
$ sPlayerctl play-pause
-
Stop music
$ sPlayerctl stop
-
Go to the next song
$ sPlayerctl next
-
Go to the previous song
$ sPlayerctl previous
-
Print info of the playing song
$ sPlayerctl info
-
Select the mpris player you wish to control
$ sPlayerctl select-player [set {auto|<player-name>}]
- Examples
# Enable automatic player selection $ sPlayerctl select-player set auto # Set "spotify" as the player you want to control $ sPlayerctl select-player set "spotify" # Use dunst notifications to select the player $ sPlayerctl select-player
- Examples
Open sPlayerctl
with your favorite text editor and edit accordignly
drawBar.sh
is a script that draw a progress bar with custom characters. Is mainly used with other scripts with the Dunst notification
- Draw the bar
$ ./drawBar <steps> <length> <drawAsEmpty>
Open drawBar.sh
with your favorite text editor and edit accordignly
sPolybarctl
is a wrapper for polybar made for easier management of many polybars and with some cool features.
To see how to add a polybar and other stuff check out the Configuration
-
Launch polybar
$ sPolybarctl launch
-
Hide/show a specific polybar
$ sPolybarctl toggle <polybar-name>
-
Show all polybars
$ sPolybarctl show
-
Hide the specified polybar
$ sPolybarctl hide <polybar-name>
-
Show the specified polybar
$ sPolybarctl show <polybar-name>
-
Hide all polybar
$ sPolybarctl hide
-
Print the status for the specified polybar (used in polybar as module)
$ sPolybarctl status <polybar-name>
-
Send an inter-process message
- if using command=hook, use [hook-id] to specify the index (1-based) of the hook configured in the polybar config. (Default: 1)
- use [polybar-name] to send the IPC message to the specified polybar. (Default: all polybars)
$ sPolybarctl ipc <command=(action|cmd|hook)> <payload> [hook-id] [polybar-name]
Examples:
$ sPolybarctl ipc action "#open.1" myBar # simulate the menu open on the 'myBar' bar $ sPolybarctl ipc action "#date.toggle" # simulate the toggle action on date modules on all bars $ sPolybarctl ipc cmd show myOtherBar # show the 'myOtherBar' bar $ sPolybarctl ipc cmd hide # hide all bars $ sPolybarctl ipc hook myModule # call the first defined hook of 'myModule' in all bars $ sPolybarctl ipc hook myModule 2 # call the second defined hook of 'myModule' in all bars $ sPolybarctl ipc hook myModule 2 myBar # call the first defined hook of 'myModule' in all bars 'myBar'
-
Hide/show the tray window
$ sPolybarctl toggleTray
-
[WIP] Enable intelli-Hide for the specified polybar. By default you move the mouse on top of the screen to show the polybar otherwise hidden
$ sPolybarctl autoHide <polybar-name>
-
[WIP] Drag with mouse the specified polybar.
$ sPolybarctl drag <polybar-name>
-
[WIP] Resize the specified polybar with the mouse.
$ sPolybarctl resize <polybar-name>
A wrapper for xdotool used in sPolybarctl
It prints current AUR packages that need to be upgraded
It prints the current fan speed in RPM
Just a crap script used in a module that create sliding text of the todo list :D
- Be sure to make the script executable
$ chmod +x sTodo
- (Optional) If you want the Dunst notification make sure to have Dunst and Rofi installed, along side with my drawBar.sh, which also need to be made executable
$ chmod +x drawBar.sh
-
Show help
$ sTodo help
-
List things done, to do or deleted with a name search or id
$ sTodo list [done|todo|deleted] [name|id]
- Examples
# quick list things to do $ sTodo # quick list things to do containing "buy some milk and" $ sTodo "buy some milk and" # list things deleted $ sTodo list deleted # list things done containing "buy some milk and" $ sTodo list done "buy some milk and"
- Examples
-
Add a new todo
$ sTodo new <name>
-
Mark as done
$ sTodo do <id>
-
Mark as to do
$ sTodo undo <id>
-
Mark as deleted
$ sTodo delete <id>
-
Edit the todo list manually
$ sTodo edit
-
Show dunst notification popup
$ sTodo notification [done|todo|deleted]
Open sTodo
with your favorite text editor and edit accordignly
- Be sure to make the script executable
$ chmod +x sBatteryctl
- Call this script on a crontab Be sure to read the Arch wiki on Cron to install all the components you need and how to use them
-
Monitor the battery status (preferably used in a crontab)
$ sBatteryctl monitor
-
Show current information on the battery
$ sBatteryctl current
-
Show notification about plugging AC
$ sBatteryctl plugin
-
Show notification about unplugging AC
$ sBatteryctl unplug
-
Stop the computer from going in standby with wakelock
$ sBatteryctl wakelock toggle {on|off}
Open sBatteryctl
with your favorite text editor and edit accordignly