aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-12-16 18:52:37 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-12-16 18:52:37 +0000
commit957b3a05e758907c7b5b0355aece3e1259143571 (patch)
treed83fb52224e2da0c3fd4de58d273542e31092073 /.config
parent70e01478b0f62bbf11ead24ad7b64ce1978c1ea1 (diff)
Renamed brightnesscontrol to brightnesscontrol.sh and converted from bash to sh.
Diffstat (limited to '.config')
-rwxr-xr-x.config/eww/scripts/brightnesscontrol.sh (renamed from .config/eww/scripts/brightnesscontrol)4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/eww/scripts/brightnesscontrol b/.config/eww/scripts/brightnesscontrol.sh
index 1e8ea9f..69ce422 100755
--- a/.config/eww/scripts/brightnesscontrol
+++ b/.config/eww/scripts/brightnesscontrol.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# You can call this script like this:
# brightnessControl up
@@ -8,7 +8,7 @@
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
-function send_notification {
+send_notification() {
icon="/usr/share/icons/Adwaita/symbolic/status/daytime-sunrise-symbolic.svg"
brightness=$(backlight -q)
# Make the bar with the special character ─ (it's not dash -)