feat: desktop config as base
This commit is contained in:
parent
d589775634
commit
7dba0b18be
34 changed files with 1148 additions and 890 deletions
|
|
@ -1,8 +1,11 @@
|
|||
#! /bin/bash
|
||||
|
||||
ISOPEN=$(eww windows | grep "*cockpit")
|
||||
ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*')
|
||||
|
||||
|
||||
if [ "$ISOPEN" = "" ]; then
|
||||
eww open cockpit_window
|
||||
MONITOR=$(hyprctl monitors | grep -B 7 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
|
||||
eww open cockpit_window_"$MONITOR"
|
||||
else
|
||||
eww close cockpit_window
|
||||
eww close "$ISOPEN"
|
||||
fi
|
||||
|
|
|
|||
1
eww/scripts/home/dashie/.cache/weather/weather-degree
Normal file
1
eww/scripts/home/dashie/.cache/weather/weather-degree
Normal file
|
|
@ -0,0 +1 @@
|
|||
8°C
|
||||
1
eww/scripts/home/dashie/.cache/weather/weather-hex
Normal file
1
eww/scripts/home/dashie/.cache/weather/weather-hex
Normal file
|
|
@ -0,0 +1 @@
|
|||
#adadff
|
||||
1
eww/scripts/home/dashie/.cache/weather/weather-icon
Normal file
1
eww/scripts/home/dashie/.cache/weather/weather-icon
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
1
eww/scripts/home/dashie/.cache/weather/weather-quote
Normal file
1
eww/scripts/home/dashie/.cache/weather/weather-quote
Normal file
|
|
@ -0,0 +1 @@
|
|||
It's cloudy, sort of gloomy \nYou'd better get a book to read...
|
||||
1
eww/scripts/home/dashie/.cache/weather/weather-stat
Normal file
1
eww/scripts/home/dashie/.cache/weather/weather-stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
Overcast Clouds
|
||||
|
|
@ -29,7 +29,7 @@ run() {
|
|||
${EWW_BIN} -c $HOME/.config/eww open system
|
||||
}
|
||||
|
||||
# Open widgets
|
||||
# Open system
|
||||
if [[ ! -f "$LOCK_FILE_MEM" ]]; then
|
||||
${EWW_BIN} -c $HOME/.config/eww close calendar music_win audio_ctl brightness
|
||||
touch "$LOCK_FILE_MEM"
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
#if [ "$PLAYER_EVENT" = "start" ] || [ "$PLAYER_EVENT" = "change" ];
|
||||
#then
|
||||
trackName=$(playerctl -p spotifyd,%any metadata title)
|
||||
artistAndAlbumName=$(playerctl -p spotifyd,%any metadata --format "{{ artist }} ({{ album }})")
|
||||
Thumbnail_url=$(playerctl -p spotifyd,%any metadata mpris:artUrl)
|
||||
Thumbnail=$(curl "$Thumbnail_url")
|
||||
notify-send -u low "$trackName" "$artistAndAlbumName " -i "$Thumbnail"
|
||||
#fi
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
if [ "$PLAYER_EVENT" = "start" ] || [ "$PLAYER_EVENT" = "change" ];
|
||||
then
|
||||
song=$(playerctl metadata -p spotifyd --format "{{ title }}\n{{ artist }}\n{{ album }}")
|
||||
if [ ! -f "/home/dashie/.cache/icons/$song" ]; then
|
||||
thumb=$(playerctl metadata -p spotifyd --format '{{lc(mpris:artUrl)}}')
|
||||
convert "$thumb" -flatten -thumbnail 256x256 /home/dashie/.cache/icons/"$song"
|
||||
fi
|
||||
dunstify -I /home/dashie/.cache/icons/"$song" -t 3000 "Spotify" "$song"
|
||||
fi
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#! /bin/bash
|
||||
|
||||
SINK=$(pactl info | grep "Default Sink"| awk -F 'Default Sink: ' ' { print $2 } ')
|
||||
pactl set-sink-mute $SINK toggle
|
||||
MUTE=$(pactl list sinks | grep -A 6 "$SINK" | grep "Mute: yes" | tr -d '\t')
|
||||
|
||||
if [ "$MUTE" = "Mute: yes" ]; then
|
||||
dunstify -a "toggleMute" -r 2 -u low "Muted"
|
||||
else
|
||||
dunstify -a "toggleMute" -r 2 -u low "Unmuted"
|
||||
fi
|
||||
|
||||
|
|
@ -10,16 +10,16 @@ tmp_weather_icon=$tmp_weather/weather-icon
|
|||
if [ ! -d $tmp_weather ]; then
|
||||
mkdir -p $tmp_weather
|
||||
fi
|
||||
|
||||
#notify-send -u critical "weather ping" "pangping"
|
||||
# Put in your api and stuff link here
|
||||
# If you dunno, head to openweathermap.org, and make and account
|
||||
#(completely free I swear, and then get your API Key and your City ID)
|
||||
# I wish I was smart enough to do it like Elena, but this is the top I could do lol
|
||||
KEY="{your key}"
|
||||
ID="{your city id}"
|
||||
KEY="{key}"
|
||||
ID="{location}"
|
||||
UNIT="{metric}" #Options are 'metric' and 'imperial'
|
||||
weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID="$KEY"&id="$ID"&units="$UNIT"")
|
||||
echo $weather
|
||||
weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID="$KEY"&q="$ID"&units="$UNIT"")
|
||||
#echo $weather
|
||||
if [ ! -z "$weather" ]; then
|
||||
weather_temp=$(echo "$weather" | jq ".main.temp" | cut -d "." -f 1)
|
||||
weather_icon_code=$(echo "$weather" | jq -r ".weather[].icon" | head -1)
|
||||
|
|
|
|||
|
|
@ -21,14 +21,14 @@ o7=$(hyprctl workspaces | grep "$ws7" )
|
|||
o8=$(hyprctl workspaces | grep "$ws8" )
|
||||
|
||||
# check if Focused
|
||||
f1=$(hyprctl monitors | grep "workspace: 1" )
|
||||
f2=$(hyprctl monitors | grep "workspace: 2" )
|
||||
f3=$(hyprctl monitors | grep "workspace: 3" )
|
||||
f4=$(hyprctl monitors | grep "workspace: 4" )
|
||||
f5=$(hyprctl monitors | grep "workspace: 5" )
|
||||
f6=$(hyprctl monitors | grep "workspace: 6" )
|
||||
f7=$(hyprctl monitors | grep "workspace: 7" )
|
||||
f8=$(hyprctl monitors | grep "workspace: 8" )
|
||||
f1=$(hyprctl monitors | grep "workspace: 1" -A 4 | grep "focused: yes" )
|
||||
f2=$(hyprctl monitors | grep "workspace: 2" -A 4 | grep "focused: yes" )
|
||||
f3=$(hyprctl monitors | grep "workspace: 3" -A 4 | grep "focused: yes" )
|
||||
f4=$(hyprctl monitors | grep "workspace: 4" -A 4 | grep "focused: yes" )
|
||||
f5=$(hyprctl monitors | grep "workspace: 5" -A 4 | grep "focused: yes" )
|
||||
f6=$(hyprctl monitors | grep "workspace: 6" -A 4 | grep "focused: yes" )
|
||||
f7=$(hyprctl monitors | grep "workspace: 7" -A 4 | grep "focused: yes" )
|
||||
f8=$(hyprctl monitors | grep "workspace: 8" -A 4 | grep "focused: yes" )
|
||||
|
||||
if [ "$o1" != "" ]; then
|
||||
ic_1="①"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue