cleanup old config
@@ -3,6 +3,7 @@ exec-once=$HOME/.config/hypr/scripts/powercheck
|
||||
exec-once=$HOME/.config/hypr/scripts/portal.sh
|
||||
|
||||
$THEME=~/.config/hypr/themes/aurora
|
||||
source=$THEME/theme.conf
|
||||
|
||||
input {
|
||||
touchpad {
|
||||
@@ -23,7 +24,6 @@ misc {
|
||||
disable_hyprland_logo=yes
|
||||
}
|
||||
|
||||
source=$THEME/theme.conf
|
||||
source=./binds.conf
|
||||
source=./rules.conf
|
||||
source=./profiles/power.conf
|
||||
@@ -1,192 +0,0 @@
|
||||
{
|
||||
"layer": "top", // Waybar at top layer
|
||||
"position": "top", // Waybar position (top|bottom|left|right)
|
||||
"height": 50, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 5, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
// "margin-left":25,
|
||||
// "margin-right":25,
|
||||
"margin-bottom":-11,
|
||||
//"margin-top":5,
|
||||
"modules-left": ["wlr/workspaces"],
|
||||
"modules-right": ["temperature","network","battery","custom/ss","custom/cycle_wall","custom/expand","cpu","clock"],
|
||||
"modules-center": ["custom/dynamic_pill"],
|
||||
// Modules configuration
|
||||
|
||||
|
||||
// custom modules ////////////////
|
||||
"custom/dynamic_pill": {
|
||||
"return-type": "json",
|
||||
"exec": "~/.config/hypr/scripts/tools/start_dyn",
|
||||
"escape":true
|
||||
},
|
||||
"custom/ss":{
|
||||
"format":"{}",
|
||||
"exec":"~/.config/hypr/scripts/tools/expand ss-icon",
|
||||
"on-click": "~/.config/hypr/scripts/screenshot_full"
|
||||
},
|
||||
"custom/cycle_wall":{
|
||||
"format":"{}",
|
||||
"exec": "~/.config/hypr/scripts/tools/expand wall",
|
||||
// "interval": 1,
|
||||
"on-click": "~/.config/hypr/scripts/tools/expand cycle"
|
||||
},
|
||||
"custom/expand":{
|
||||
"on-click":"~/.config/hypr/scripts/expand_toolbar",
|
||||
"format":"{}",
|
||||
"exec":"~/.config/hypr/scripts/tools/expand arrow-icon"
|
||||
},
|
||||
// "custom/waybar-mpris": {
|
||||
// "return-type": "json",
|
||||
// "exec": "echo ' '",
|
||||
// "on-click": "waybar-mpris --send toggle",
|
||||
// // This option will switch between players on right click.
|
||||
// "on-click-right": "waybar-mpris --send player-next",
|
||||
// // The options below will switch the selected player on scroll
|
||||
// // "on-scroll-up": "waybar-mpris --send player-next",
|
||||
// // "on-scroll-down": "waybar-mpris --send player-prev",
|
||||
// // The options below will go to next/previous track on scroll
|
||||
// // "on-scroll-up": "waybar-mpris --send next",
|
||||
// // "on-scroll-down": "waybar-mpris --send prev",
|
||||
// "escape": true
|
||||
// },
|
||||
//////////////////////////////////
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"wlr/workspaces": {
|
||||
"format": "{icon}",
|
||||
"format-active": " {icon} ",
|
||||
"on-click": "activate"
|
||||
// "format-icons":{
|
||||
// "10":"10"
|
||||
// }
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"interval": 60,
|
||||
"format": "{:%I:%M}",
|
||||
"max-length": 25
|
||||
},
|
||||
"cpu": {
|
||||
"interval":1,
|
||||
"format": "{icon0} {icon1} {icon2} {icon3}",
|
||||
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
"format-critical": "{temperatureC}°C",
|
||||
"format": ""
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 50,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon}",
|
||||
"format-charging": "",
|
||||
"format-plugged": "",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "",
|
||||
"format-ethernet": "",
|
||||
"tooltip-format": "via {gwaddr} {ifname}",
|
||||
"format-linked": "",
|
||||
"format-disconnected": "wifi",
|
||||
"format-alt": " "
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
}
|
||||
}
|
||||
@@ -1,338 +0,0 @@
|
||||
* {
|
||||
font-family: FiraCode , Noto Sans,FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#custom-expand,
|
||||
#custom-cycle_wall,
|
||||
#custom-ss,
|
||||
#custom-dynamic_pill,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
border-radius: 15px;
|
||||
background: #11111b;
|
||||
color: #b4befe;
|
||||
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#custom-dynamic_pill label {
|
||||
color: #11111b;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#custom-dynamic_pill.paused label {
|
||||
color: #89b4fa ;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#workspaces button label{
|
||||
color: #89b4fa ;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#workspaces button.active label{
|
||||
color: #11111b;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#workspaces{
|
||||
background-color: transparent;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
margin-right: 10px;
|
||||
margin-left: 25px;
|
||||
}
|
||||
#workspaces button{
|
||||
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
|
||||
background-color: #11111b ;
|
||||
border-radius: 15px;
|
||||
margin-right: 10px;
|
||||
padding: 10px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 2px;
|
||||
font-weight: bolder;
|
||||
color: #89b4fa ;
|
||||
transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.68);
|
||||
}
|
||||
|
||||
#workspaces button.active{
|
||||
padding-right: 20px;
|
||||
box-shadow: rgba(0, 0, 0, 0.288) 2 2 5 2px;
|
||||
padding-left: 20px;
|
||||
padding-bottom: 3px;
|
||||
background: rgb(203,166,247);
|
||||
background: radial-gradient(circle, rgba(203,166,247,1) 0%, rgba(193,168,247,1) 12%, rgba(249,226,175,1) 19%, rgba(189,169,247,1) 20%, rgba(182,171,247,1) 24%, rgba(198,255,194,1) 36%, rgba(177,172,247,1) 37%, rgba(170,173,248,1) 48%, rgba(255,255,255,1) 52%, rgba(166,174,248,1) 52%, rgba(160,175,248,1) 59%, rgba(148,226,213,1) 66%, rgba(155,176,248,1) 67%, rgba(152,177,248,1) 68%, rgba(205,214,244,1) 77%, rgba(148,178,249,1) 78%, rgba(144,179,250,1) 82%, rgba(180,190,254,1) 83%, rgba(141,179,250,1) 90%, rgba(137,180,250,1) 100%);
|
||||
background-size: 400% 400%;
|
||||
animation: gradient_f 20s ease-in-out infinite;
|
||||
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
|
||||
}
|
||||
|
||||
@keyframes gradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 30%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes gradient_f {
|
||||
0% {
|
||||
background-position: 0% 200%;
|
||||
}
|
||||
50% {
|
||||
background-position: 200% 0%;
|
||||
}
|
||||
100% {
|
||||
background-position: 400% 200%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes gradient_f_nh {
|
||||
0% {
|
||||
background-position: 0% 200%;
|
||||
}
|
||||
100% {
|
||||
background-position: 200% 200%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#custom-dynamic_pill.low{
|
||||
background: rgb(148,226,213);
|
||||
background: linear-gradient(52deg, rgba(148,226,213,1) 0%, rgba(137,220,235,1) 19%, rgba(116,199,236,1) 43%, rgba(137,180,250,1) 56%, rgba(180,190,254,1) 80%, rgba(186,187,241,1) 100%);
|
||||
background-size: 300% 300%;
|
||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||
animation: gradient 15s ease infinite;
|
||||
font-weight: bolder;
|
||||
color: #fff;
|
||||
}
|
||||
#custom-dynamic_pill.normal{
|
||||
background: rgb(148,226,213);
|
||||
background: radial-gradient(circle, rgba(148,226,213,1) 0%, rgba(156,227,191,1) 21%, rgba(249,226,175,1) 34%, rgba(158,227,186,1) 35%, rgba(163,227,169,1) 59%, rgba(148,226,213,1) 74%, rgba(164,227,167,1) 74%, rgba(166,227,161,1) 100%);
|
||||
background-size: 400% 400%;
|
||||
animation: gradient_f 4s ease infinite;
|
||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||
font-weight: bolder;
|
||||
color: #fff;
|
||||
}
|
||||
#custom-dynamic_pill.critical{
|
||||
background: rgb(235,160,172);
|
||||
background: linear-gradient(52deg, rgba(235,160,172,1) 0%, rgba(243,139,168,1) 30%, rgba(231,130,132,1) 48%, rgba(250,179,135,1) 77%, rgba(249,226,175,1) 100%);
|
||||
background-size: 300% 300%;
|
||||
animation: gradient 15s cubic-bezier(.55,-0.68,.48,1.68) infinite;
|
||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||
font-weight: bolder;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#custom-dynamic_pill.playing{
|
||||
background: rgb(137,180,250);
|
||||
background: radial-gradient(circle, rgba(137,180,250,120) 0%, rgba(142,179,250,120) 6%, rgba(148,226,213,1) 14%, rgba(147,178,250,1) 14%, rgba(155,176,249,1) 18%, rgba(245,194,231,1) 28%, rgba(158,175,249,1) 28%, rgba(181,170,248,1) 58%, rgba(205,214,244,1) 69%, rgba(186,169,248,1) 69%, rgba(195,167,247,1) 72%, rgba(137,220,235,1) 73%, rgba(198,167,247,1) 78%, rgba(203,166,247,1) 100%);
|
||||
background-size: 400% 400%;
|
||||
animation: gradient_f 9s cubic-bezier(.72,.39,.21,1) infinite;
|
||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||
font-weight: bold;
|
||||
color: #fff ;
|
||||
}
|
||||
|
||||
#custom-dynamic_pill.paused{
|
||||
background: #11111b ;
|
||||
font-weight: bolder;
|
||||
color: #b4befe;
|
||||
}
|
||||
|
||||
#custom-ss{
|
||||
background: #11111b;
|
||||
color: #89b4fa;
|
||||
font-weight: bolder;
|
||||
padding: 5px;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
|
||||
#custom-cycle_wall{
|
||||
background: rgb(245,194,231);
|
||||
background: linear-gradient(45deg, rgba(245,194,231,1) 0%, rgba(203,166,247,1) 0%, rgba(243,139,168,1) 13%, rgba(235,160,172,1) 26%, rgba(250,179,135,1) 34%, rgba(249,226,175,1) 49%, rgba(166,227,161,1) 65%, rgba(148,226,213,1) 77%, rgba(137,220,235,1) 82%, rgba(116,199,236,1) 88%, rgba(137,180,250,1) 95%);
|
||||
color: #fff;
|
||||
background-size: 500% 500%;
|
||||
animation: gradient 7s linear infinite;
|
||||
font-weight: bolder;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
#clock label{
|
||||
color: #11111b;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background: rgb(205,214,244);
|
||||
background: linear-gradient(118deg, rgba(205,214,244,1) 5%, rgba(243,139,168,1) 5%, rgba(243,139,168,1) 20%, rgba(205,214,244,1) 20%, rgba(205,214,244,1) 40%, rgba(243,139,168,1) 40%, rgba(243,139,168,1) 60%, rgba(205,214,244,1) 60%, rgba(205,214,244,1) 80%, rgba(243,139,168,1) 80%, rgba(243,139,168,1) 95%, rgba(205,214,244,1) 95%);
|
||||
|
||||
background-size: 200% 300%;
|
||||
|
||||
animation: gradient_f_nh 4s linear infinite;
|
||||
margin-right: 25px;
|
||||
color: #fff ;
|
||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||
|
||||
font-size: 15px;
|
||||
padding-top: 5px;
|
||||
padding-right: 21px;
|
||||
font-weight: bolder;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
background-color: #94e2d5 ;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #11111b;
|
||||
color:#a6e3a1;
|
||||
font-weight: bolder;
|
||||
font-size: 20px;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #f9e2af;
|
||||
color:#96804e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f38ba8;
|
||||
color:#bf5673;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#cpu label{
|
||||
color:#89dceb;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background: rgb(30,30,46);
|
||||
background: radial-gradient(circle, rgba(30,30,46,1) 30%, rgba(17,17,27,1) 100%);
|
||||
color: #89b4fa;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #cba6f7;
|
||||
color: #9a75c7;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#disk {
|
||||
color: #964B00;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
color: #90b1b1;
|
||||
}
|
||||
|
||||
#network{
|
||||
color:#000;
|
||||
}
|
||||
|
||||
#network.disabled{
|
||||
background-color: #45475a;
|
||||
}
|
||||
|
||||
#network.disconnected{
|
||||
background: rgb(243,139,168);
|
||||
background: linear-gradient(45deg, rgba(243,139,168,1) 0%, rgba(250,179,135,1) 100%);
|
||||
color: #fff;
|
||||
font-weight: bolder;
|
||||
padding-top: 3px;
|
||||
padding-right: 11px;
|
||||
}
|
||||
|
||||
#network.linked, #network.wifi{
|
||||
background-color: #a6e3a1 ;
|
||||
}
|
||||
|
||||
#network.ethernet{
|
||||
background-color:#f9e2af ;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #fab387;
|
||||
color: #bf7d54;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f9e2af;
|
||||
color:#96804e;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #f38ba8 ;
|
||||
color:#bf5673;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
LOCK=/tmp/expand_toolbar.lock
|
||||
|
||||
if [ -f "$LOCK" ]; then
|
||||
echo expand
|
||||
rm -f "$LOCK"
|
||||
else
|
||||
echo collapse
|
||||
touch "$LOCK"
|
||||
fi
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
waybar -c $HOME/.config/hypr/component/waybar/config -s $HOME/.config/hypr/component/waybar/style.css &
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
grim - | wl-copy
|
||||
notify-send "Screenshot copied to clipboard" -a "ss"
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
LOCK=/tmp/expand_toolbar.lock
|
||||
|
||||
if [ -f "$LOCK" ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
@@ -1,86 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
import json
|
||||
import pickle
|
||||
import time
|
||||
import threading
|
||||
|
||||
OUT = f"{Path.home()}/.config/hypr/store/dynamic_out.txt"
|
||||
# PREV_PATH = f"{Path.home()}/.config/hypr/store/prev.txt"
|
||||
prev = None
|
||||
|
||||
def print(ar):
|
||||
with open(OUT,"w") as f:
|
||||
f.write(json.dumps(ar))
|
||||
|
||||
# with open(f"{Path.home()}/.config/hypr/im_here","w") as f:
|
||||
# f.write("")
|
||||
|
||||
global PAUSE_MEDIA
|
||||
PAUSE_MEDIA = False
|
||||
|
||||
def notif_watcher():
|
||||
with open(f"{Path.home()}/.config/hypr/store/latest_notif","rb") as f:
|
||||
global prev
|
||||
try:
|
||||
new = pickle.load(f)
|
||||
except:
|
||||
new = prev
|
||||
if new != prev:
|
||||
print(json.dumps({"class":"none","text":""}))
|
||||
global PAUSE_MEDIA
|
||||
PAUSE_MEDIA = True
|
||||
urgency = "low"
|
||||
if new["urgency"] == "CRITICAL":
|
||||
urgency = "critical"
|
||||
elif new["urgency"] == "NORMAL":
|
||||
urgency = "normal"
|
||||
doc = {
|
||||
"class":urgency,
|
||||
"text":f'[{new["app_name"]}] {new["summary"]}',
|
||||
"tooltip":"notification"
|
||||
}
|
||||
print(doc)
|
||||
time.sleep(3)
|
||||
print({"class":"none","text":""})
|
||||
PAUSE_MEDIA = False
|
||||
prev = new
|
||||
|
||||
|
||||
def start_watcher():
|
||||
while 1:
|
||||
notif_watcher()
|
||||
time.sleep(0.5)
|
||||
|
||||
|
||||
def debug():
|
||||
while 1:
|
||||
print(PAUSE_MEDIA)
|
||||
time.sleep(0.5)
|
||||
t = threading.Thread(target=start_watcher)
|
||||
d = threading.Thread(target=debug)
|
||||
t.start()
|
||||
# d.start()
|
||||
|
||||
|
||||
|
||||
with open("test.log", "wb") as f:
|
||||
process = subprocess.Popen(
|
||||
"waybar-mpris --position --autofocus".split(),
|
||||
stdout=subprocess.PIPE
|
||||
)
|
||||
print(json.dumps({"class":"none","text":""}))
|
||||
for line in iter(lambda: process.stdout.readline().decode("utf-8"), b""):
|
||||
dat = json.loads(line)
|
||||
if not PAUSE_MEDIA:
|
||||
if "text" in dat:
|
||||
dat["text"] = dat["text"].replace(" ", "").replace("", "")
|
||||
print(dat)
|
||||
else:
|
||||
print({"class":"none","text":""})
|
||||
|
||||
t.join()
|
||||
# d.join()
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
TEMP=/tmp/current_wall
|
||||
|
||||
files=(~/.config/hypr/wallpapers/*)
|
||||
|
||||
hypr=~/.config/hypr
|
||||
scripts=$hypr/scripts
|
||||
|
||||
cooldown=0.1
|
||||
|
||||
|
||||
while true
|
||||
do
|
||||
case "$1" in
|
||||
"cycle")
|
||||
index=$(cat $TEMP)
|
||||
index=$((index+1))
|
||||
if [ $index -ge ${#files[@]} ]; then
|
||||
index=0
|
||||
fi
|
||||
echo $index > $TEMP
|
||||
$scripts/wall "${files[$index]}"
|
||||
exit 0
|
||||
;;
|
||||
"arrow-icon")
|
||||
if $scripts/toolbar_state; then
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
;;
|
||||
"ss-icon")
|
||||
if $scripts/toolbar_state; then
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
;;
|
||||
# "media")
|
||||
|
||||
*)
|
||||
if $scripts/toolbar_state; then
|
||||
echo " "
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
sleep $cooldown
|
||||
done
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
import pickle
|
||||
import os
|
||||
from pathlib import Path
|
||||
dat = {
|
||||
"app_name":os.getenv("DUNST_APP_NAME"),
|
||||
"summary":os.getenv("DUNST_SUMMARY"),
|
||||
"body":os.getenv("DUNST_BODY"),
|
||||
"icon":os.getenv("DUNST_ICON_path"),
|
||||
"urgency":os.getenv("DUNST_URGENCY"),
|
||||
"id":os.getenv("DUNST_ID"),
|
||||
"progress":os.getenv("DUNST_PROGRESS"),
|
||||
"category":os.getenv("DUNST_CATEGORY"),
|
||||
"stack_tag":os.getenv("DUNST_STACK_TAG"),
|
||||
"urls":os.getenv("DUNST_URLS"),
|
||||
"timeout":os.getenv("DUNST_TIMEOUT"),
|
||||
"timestamp":os.getenv("DUNST_TIMESTAMP"),
|
||||
"desktop-entry":os.getenv("DUNST_DESKTOP_ENTRY"),
|
||||
"stack-tag":os.getenv("DUNST_STACK_TAG"),
|
||||
}
|
||||
with open(f"{Path.home()}/.config/hypr/store/latest_notif", "wb") as f:
|
||||
pickle.dump(dat, f)
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
~/.config/hypr/scripts/tools/dynamic &
|
||||
while true
|
||||
do
|
||||
# echo ""
|
||||
out=$(cat ~/.config/hypr/store/dynamic_out.txt)
|
||||
echo "$out" | jq --unbuffered --compact-output
|
||||
# cat ~/.config/hypr/scripts/tools/dynamic_out.txt
|
||||
sleep 0.5
|
||||
done
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
swww init
|
||||
swww img $1 --transition-type grow --transition-pos "$(hyprctl cursorpos)" --transition-duration 3
|
||||
@@ -1 +0,0 @@
|
||||
{"class": "none", "text": ""}
|
||||
|
Before Width: | Height: | Size: 280 KiB |
|
Before Width: | Height: | Size: 289 KiB |
|
Before Width: | Height: | Size: 238 KiB |
|
Before Width: | Height: | Size: 679 KiB |
|
Before Width: | Height: | Size: 847 KiB |
|
Before Width: | Height: | Size: 408 KiB |
|
Before Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 4.2 MiB |
|
Before Width: | Height: | Size: 468 KiB |
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 365 KiB |
|
Before Width: | Height: | Size: 658 KiB |
@@ -5,7 +5,4 @@ asusctl #optional
|
||||
grim
|
||||
slurp
|
||||
swww
|
||||
|
||||
# zsh
|
||||
# zsh-syntax-highlighting
|
||||
# zsh-autosuggestions
|
||||
fish
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
windowrule=float,title:^(fly_is_foot)$
|
||||
windowrule=move center,title:^(fly_is_foot)$
|
||||
windowrule=move center,title:^(fly_is_foot)$
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
echo $1 > ~/.config/hypr/themes/term_theme
|
||||
pkill -USR2 fish
|
||||