xdg spec part I

This commit is contained in:
2024-08-20 14:35:40 +02:00
parent ae6dda30c6
commit e81925cb24
30 changed files with 96 additions and 2440 deletions

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# trigger a small, passive popup dialog to inform the user about darkman's activity
# reference https://wiki.archlinux.org/title/Desktop_notifications#Usage_in_programming
notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "switching to dark mode"

View File

@@ -0,0 +1,6 @@
#!/bin/bash
gsettings set org.gnome.desktop.interface gtk-theme Gruvbox-Yellow-Dark
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
gsettings set org.gnome.desktop.interface icon-theme Papirus-Dark
gsettings set org.gnome.desktop.interface cursor-theme Simp1e-Gruvbox-Dark

View File

@@ -0,0 +1,3 @@
#!/bin/bash
hyprctl setcursor Simp1e-Gruvbox-Dark 24

View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo 'include gruvbox.conf' > $HOME/.config/kitty/colors.conf
killall -SIGUSR1 kitty || true

View File

@@ -0,0 +1,3 @@
#!/bin/bash
echo -e '[General]\ntheme=gruvbox-kvantum' > ~/.config/Kvantum/kvantum.kvconfig

View File

@@ -0,0 +1,9 @@
#!/bin/sh
unlink $HOME/.config/mako/config
makoctl set-mode dark
ln -s $HOME/.config/mako/config-dark $HOME/.config/mako/config
makoctl reload

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# This uses the neovim-remote python package to control other neovim instances.
# see: https://github.com/mhinz/neovim-remote
# Further, it is assumed that toggling the background in neovim is enough.
# Anything else should be handled by the set color scheme.
for server in $(nvr --serverlist); do
nvr --servername "$server" -cc 'set background=dark'
done

View File

@@ -0,0 +1,3 @@
#!/bin/bash
echo '@theme "/usr/share/rofi/themes/gruvbox-dark-soft.rasi"' > $HOME/.config/rofi/config.rasi

View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo '@import "layout.css"; @import "gruvbox-dark.css";' > $HOME/.config/waybar/style.css
killall -SIGUSR2 waybar &