feat/nix #3
8 changed files with 10 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env dash
|
||||||
|
|
||||||
info (){
|
info (){
|
||||||
power=$(bluetoothctl show | grep Powered | awk '{print $2}' | sed 's/yes/on/g; s/no/off/g')
|
power=$(bluetoothctl show | grep Powered | awk '{print $2}' | sed 's/yes/on/g; s/no/off/g')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/dash
|
#!/usr/bin/env dash
|
||||||
|
|
||||||
print_state() {
|
print_state() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env dash
|
||||||
|
|
||||||
info (){
|
info (){
|
||||||
title=$(playerctl metadata xesam:title 2> /dev/null)
|
title=$(playerctl metadata xesam:title 2> /dev/null)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
volume (){
|
volume (){
|
||||||
vol=$(pamixer --get-volume-human)
|
vol=$(pamixer --get-volume-human)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/dash
|
#!/usr/bin/env dash
|
||||||
|
|
||||||
function clamp {
|
function clamp {
|
||||||
min=$1
|
min=$1
|
||||||
max=$2
|
max=$2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/dash
|
#!/usr/bin/env dash
|
||||||
|
|
||||||
spaces (){
|
spaces (){
|
||||||
hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID}) | sort_by(.id)'
|
hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID}) | sort_by(.id)'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/dash
|
#!/usr/bin/env dash
|
||||||
|
|
||||||
profile="$(powerprofilesctl get)"
|
profile="$(powerprofilesctl get)"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/dash
|
#!/usr/bin/env dash
|
||||||
|
|
||||||
refresh_rate=$(hyprctl -j monitors | jq '.[0].refreshRate | round')
|
refresh_rate=$(hyprctl -j monitors | jq '.[0].refreshRate | round')
|
||||||
|
|
||||||
if [ "$1" = "toggle" ]; then
|
if [ "$1" = "toggle" ]; then
|
||||||
|
|
Loading…
Reference in a new issue