added .local and .themes
(wallpaper and non-config theming)
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.config/.stfolder
|
||||
.local/.stfolder
|
||||
.themes/.stfolder
|
29
.local/bin/msleep
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Get wake up time:
|
||||
|
||||
case $# in
|
||||
|
||||
1)
|
||||
|
||||
HUMANTIMESET=$1
|
||||
PCTIMESET=$(echo $HUMANTIMESET | awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }')
|
||||
CHECKTODAY=$(date +%s -d 'today 0:00')
|
||||
WAKEUPTIMETODAY=$(($PCTIMESET+$CHECKTODAY))
|
||||
WAKEUPTIMETOMORROW=$(($WAKEUPTIMETODAY+86400))
|
||||
if [ $WAKEUPTIMETODAY -ge $(date +%s) ]
|
||||
then
|
||||
echo "Waking up Today at $HUMANTIMESET ! Good Night!"
|
||||
sleep 3
|
||||
sudo rtcwake -m mem -t $WAKEUPTIMETODAY
|
||||
else
|
||||
echo Waking up Tomorrow at $HUMANTIMESET ! Good Night!
|
||||
sleep 3
|
||||
sudo rtcwake -m mem -t $WAKEUPTIMETOMORROW
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
systemctl suspend
|
||||
;;
|
||||
esac
|
8
.local/bin/nix-reload
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if sudo nixos-rebuild switch ; then
|
||||
notify-send "NixOS rebuild successful"
|
||||
exit
|
||||
else
|
||||
notify-send "NixOS rebuild failed"
|
||||
fi
|
10
.local/bin/nix-update
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
sudo nix-channel --update
|
||||
|
||||
if sudo nixos-rebuild --upgrade switch ; then
|
||||
notify-send "NixOS update successful"
|
||||
exit
|
||||
else
|
||||
notify-send "NixOS update failed"
|
||||
fi
|
14
.local/bin/notify-log
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
notifylogfile=$1
|
||||
|
||||
dbus-monitor "interface='org.freedesktop.Notifications'" |\
|
||||
grep --line-buffered ' string' |\
|
||||
grep --line-buffered -v ' string' |\
|
||||
grep --line-buffered -v 'string ":[1-9]*.[1-9]*' |\
|
||||
grep --line-buffered '.*(?=string)|(?<=string).*' -oPi |\
|
||||
grep --line-buffered -v '^\s*$' |\
|
||||
sed -u 's/[^"]$/"/g' |\
|
||||
sed -u 'N;s/\n/ /' |\
|
||||
sed -u 'N;s/\n/ /' |\
|
||||
xargs -I '{}' \
|
||||
printf "--- $(date | awk '{print $2".",$3,$6,"- "$4}') ---\n{}\n" >> $notifylogfile
|
77
.local/bin/power-menu
Executable file
|
@ -0,0 +1,77 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
entries="Suspend Logout Shutdown Reload"
|
||||
|
||||
selected=$(printf '%s\n' $entries | rofi -dmenu -i | awk '{print tolower($1)}')
|
||||
|
||||
case $selected in
|
||||
suspend)
|
||||
entries_suspend=$(cat ~/.cache/mtfiles/msleep_times | sort)
|
||||
selected_suspend=$(printf '%s\n' $entries_suspend | rofi -dmenu -i | awk '{print tolower($1)}')
|
||||
case $selected_suspend in
|
||||
"")
|
||||
systemctl suspend
|
||||
;;
|
||||
[0-2][0-9]:[0-5][0-9])
|
||||
grep $selected_suspend ~/.cache/mtfiles/msleep_times || echo $selected_suspend >> ~/.cache/mtfiles/msleep_times
|
||||
exec ~/.local/bin/msleep $selected_suspend
|
||||
;;
|
||||
clear)
|
||||
echo "clear" > ~/.cache/mtfiles/msleep_times
|
||||
;;
|
||||
*)
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
logout)
|
||||
entries_logout="Confirm Cancel"
|
||||
selected_logout=$(printf '%s\n' $entries_logout | rofi -dmenu -i | awk '{print tolower($1)}')
|
||||
case $selected_logout in
|
||||
"confirm")
|
||||
hyprctl dispatch exit
|
||||
;;
|
||||
*)
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
shutdown)
|
||||
entries_shutdown="Shutdown Reboot"
|
||||
selected_shutdown=$(printf '%s\n' $entries_shutdown | rofi -dmenu -i | awk '{print tolower($1)}')
|
||||
case $selected_shutdown in
|
||||
shutdown)
|
||||
systemctl poweroff -i
|
||||
;;
|
||||
reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
*)
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
reload)
|
||||
entries_reload="Desktop NixOS"
|
||||
selected_reload=$(printf '%s\n' $entries_reload | rofi -dmenu -i | awk '{print tolower($1)}')
|
||||
case $selected_reload in
|
||||
desktop)
|
||||
hyprctl reload
|
||||
sway reload
|
||||
killall .waybar-wrapped
|
||||
waybar
|
||||
;;
|
||||
nixos)
|
||||
entries_nixos="Reload Update"
|
||||
selected_nixos=$(printf '%s\n' $entries_nixos | rofi -dmenu -i | awk '{print tolower($1)}')
|
||||
kitty --class kitty-floating --hold ~/.local/bin/nix-$selected_nixos
|
||||
;;
|
||||
*)
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
exit
|
||||
;;
|
||||
esac
|
58
.local/bin/update
Executable file
|
@ -0,0 +1,58 @@
|
|||
#!/usr/bin/env bash
|
||||
ping -q -c 1 marty.tf || exit
|
||||
|
||||
for i in pacman apt dnf; do which $i 2> /dev/null && PACKAGEMANAGER=$i; done
|
||||
case $PACKAGEMANAGER in
|
||||
pacman)
|
||||
GETPACMAN="$(curl https://raw.githubusercontent.com/martyTF/dotfiles/main/install-arch.sh | grep "sudo pacman -S --noconfirm git")"
|
||||
GETYAY="$(curl https://raw.githubusercontent.com/martyTF/dotfiles/main/install-arch.sh | grep "for i in swww")"
|
||||
yay -Syu --noconfirm
|
||||
cat ~/.cache/mtfiles/update/yay | grep "$GETYAY" || bash -c "$GETYAY"
|
||||
sudo pacman -Syu --noconfirm
|
||||
cat ~/.cache/mtfiles/update/pacman | grep "$GETPACMAN" || bash -c "$GETPACMAN"
|
||||
echo "$GETPACMAN" > ~/.cache/mtfiles/update/pacman
|
||||
echo "$GETYAY" > ~/.cache/mtfiles/update/yay
|
||||
|
||||
;;
|
||||
apt)
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
;;
|
||||
dnf)
|
||||
sudo dnf update -y
|
||||
;;
|
||||
*)
|
||||
echo "none of the supported package managers (so far only arch's pacman/yay) found, won't update any system packages, please do so manually yourself"
|
||||
;;
|
||||
esac
|
||||
|
||||
flatpak update -y
|
||||
GETFLATPAK="$(curl https://raw.githubusercontent.com/martyTF/dotfiles/main/install.sh | grep "flatpak install -y flathub org.signal.Signal")"
|
||||
cat ~/.cache/mtfiles/update/flatpak | grep "$GETFLATPAK" || bash -c "$GETFLATPAK"
|
||||
echo "$GETFLATPAK" > ~/.cache/mtfiles/update/flatpak
|
||||
|
||||
am update
|
||||
GETAM="$(curl https://raw.githubusercontent.com/martyTF/dotfiles/main/install.sh | grep "am install ")"
|
||||
cat ~/.cache/mtfiles/update/am | grep "$GETAM" || bash -c "$GETAM"
|
||||
echo "$GETAM" > ~/.cache/mtfiles/update/am
|
||||
|
||||
cd ~/.config/emacs
|
||||
git pull --rebase
|
||||
cd
|
||||
$HOME/.config/emacs/bin/doom sync -u
|
||||
|
||||
echo ~/.dotfiles/.*/ | grep ".git/" && DOTFILESGIT=1
|
||||
if [ $DOTFILESGIT -eq 1 ]
|
||||
then
|
||||
cd ~/.dotfiles
|
||||
git stash
|
||||
git pull
|
||||
stow .
|
||||
cd
|
||||
else
|
||||
cd ~/.dotfiles
|
||||
stow .
|
||||
cd
|
||||
fi
|
||||
|
||||
bash -c "$(curl https://raw.githubusercontent.com/martyTF/dotfiles/main/configure.sh | grep "chmod +" )"
|
37
.local/share/PrismLauncher/themes/Catppuccin-Mocha/README.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
<!--
|
||||
SPDX-FileCopyrightText: 2022 Mqisty
|
||||
|
||||
SPDX-License-Identifier: CC0-1.0
|
||||
-->
|
||||
|
||||
Catppuccin-Mocha
|
||||
---
|
||||
[Catppuccin-Mocha](https://github.com/catppuccin/catppuccin) theme for Prism Launcher.
|
||||
|
||||
## Preview
|
||||

|
||||
|
||||
## License
|
||||
```
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Catppuccin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
```
|
BIN
.local/share/PrismLauncher/themes/Catppuccin-Mocha/preview.png
Normal file
After Width: | Height: | Size: 61 KiB |
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2022 Derpitron
|
||||
|
||||
SPDX-License-Identifier: CC0-1.0
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"colors": {
|
||||
"AlternateBase": "#1e1e2e",
|
||||
"Base": "#181825",
|
||||
"BrightText": "#bac2de",
|
||||
"Button": "#313244",
|
||||
"ButtonText": "#cdd6f4",
|
||||
"Highlight": "#b4befe",
|
||||
"HighlightedText": "#1e1e2e",
|
||||
"Link": "#b4befe",
|
||||
"Text": "#cdd6f4",
|
||||
"ToolTipBase": "#dee5fc",
|
||||
"ToolTipText": "#dee5fc",
|
||||
"Window": "#1e1e2e",
|
||||
"WindowText": "#bac2de",
|
||||
"fadeAmount": 0.5,
|
||||
"fadeColor": "#6c7086"
|
||||
},
|
||||
"logColors": {
|
||||
"Launcher": "#cba6f7",
|
||||
"Error": "#f38ba8",
|
||||
"Warning": "#f9e2af",
|
||||
"Debug": "#a6e3a1",
|
||||
"FatalHighlight": "#f38ba8",
|
||||
"Fatal": "#181825"
|
||||
},
|
||||
"name": "Catppuccin Mocha",
|
||||
"widgets": "Fusion"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2022 Catppuccin
|
||||
|
||||
SPDX-License-Identifier: MIT
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Catppuccin
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
QToolTip {
|
||||
color: #cdd6f4;
|
||||
background-color: #313244;
|
||||
border: 1px solid #313244
|
||||
}
|
BIN
.local/share/wallpapers/0001.jpg
Normal file
After Width: | Height: | Size: 516 KiB |
BIN
.local/share/wallpapers/0002.jpg
Normal file
After Width: | Height: | Size: 2.5 MiB |
BIN
.local/share/wallpapers/0003.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
.local/share/wallpapers/0004.jpg
Normal file
After Width: | Height: | Size: 192 KiB |
BIN
.local/share/wallpapers/0005.jpg
Normal file
After Width: | Height: | Size: 664 KiB |
BIN
.local/share/wallpapers/0006.jpg
Normal file
After Width: | Height: | Size: 751 KiB |
BIN
.local/share/wallpapers/0007.jpg
Normal file
After Width: | Height: | Size: 589 KiB |
BIN
.local/share/wallpapers/0008.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
.local/share/wallpapers/0009.jpg
Normal file
After Width: | Height: | Size: 678 KiB |
BIN
.local/share/wallpapers/0010.jpg
Normal file
After Width: | Height: | Size: 244 KiB |
BIN
.local/share/wallpapers/0011.jpg
Normal file
After Width: | Height: | Size: 2.8 MiB |
BIN
.local/share/wallpapers/0012.jpg
Normal file
After Width: | Height: | Size: 468 KiB |
BIN
.local/share/wallpapers/0013.jpg
Normal file
After Width: | Height: | Size: 791 KiB |
BIN
.local/share/wallpapers/0014.jpg
Normal file
After Width: | Height: | Size: 522 KiB |
BIN
.local/share/wallpapers/0015.jpg
Normal file
After Width: | Height: | Size: 363 KiB |
BIN
.local/share/wallpapers/0016.jpg
Normal file
After Width: | Height: | Size: 5.5 MiB |
BIN
.local/share/wallpapers/0017.jpg
Normal file
After Width: | Height: | Size: 836 KiB |
BIN
.local/share/wallpapers/0018.jpg
Normal file
After Width: | Height: | Size: 807 KiB |
BIN
.local/share/wallpapers/0019.jpg
Normal file
After Width: | Height: | Size: 789 KiB |
BIN
.local/share/wallpapers/0020.jpg
Normal file
After Width: | Height: | Size: 802 KiB |
BIN
.local/share/wallpapers/0021.jpg
Normal file
After Width: | Height: | Size: 554 KiB |
BIN
.local/share/wallpapers/0022.jpg
Normal file
After Width: | Height: | Size: 844 KiB |
BIN
.local/share/wallpapers/0023.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
.local/share/wallpapers/0024.jpg
Normal file
After Width: | Height: | Size: 2.9 MiB |
BIN
.local/share/wallpapers/0025.jpg
Normal file
After Width: | Height: | Size: 610 KiB |
BIN
.local/share/wallpapers/0026.jpg
Normal file
After Width: | Height: | Size: 472 KiB |
BIN
.local/share/wallpapers/0027.jpg
Normal file
After Width: | Height: | Size: 705 KiB |
BIN
.local/share/wallpapers/0028.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
.local/share/wallpapers/0029.jpg
Normal file
After Width: | Height: | Size: 405 KiB |
BIN
.local/share/wallpapers/0030.jpg
Normal file
After Width: | Height: | Size: 512 KiB |
BIN
.local/share/wallpapers/0031.jpg
Normal file
After Width: | Height: | Size: 586 KiB |
BIN
.local/share/wallpapers/0032.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
.local/share/wallpapers/0033.jpg
Normal file
After Width: | Height: | Size: 753 KiB |
BIN
.local/share/wallpapers/0034.jpg
Normal file
After Width: | Height: | Size: 802 KiB |
BIN
.local/share/wallpapers/0035.jpg
Normal file
After Width: | Height: | Size: 882 KiB |
BIN
.local/share/wallpapers/0036.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
.local/share/wallpapers/0037.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
.local/share/wallpapers/0038.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
.local/share/wallpapers/0039.jpg
Normal file
After Width: | Height: | Size: 487 KiB |
BIN
.local/share/wallpapers/0040.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
.local/share/wallpapers/0041.jpg
Normal file
After Width: | Height: | Size: 302 KiB |
BIN
.local/share/wallpapers/0042.jpg
Normal file
After Width: | Height: | Size: 213 KiB |
BIN
.local/share/wallpapers/0043.jpg
Normal file
After Width: | Height: | Size: 263 KiB |
BIN
.local/share/wallpapers/0044.jpg
Normal file
After Width: | Height: | Size: 460 KiB |
BIN
.local/share/wallpapers/0045.jpg
Normal file
After Width: | Height: | Size: 769 KiB |
BIN
.local/share/wallpapers/0046.jpg
Normal file
After Width: | Height: | Size: 518 KiB |
BIN
.local/share/wallpapers/0047.jpg
Normal file
After Width: | Height: | Size: 422 KiB |
BIN
.local/share/wallpapers/0048.jpg
Normal file
After Width: | Height: | Size: 832 KiB |
BIN
.local/share/wallpapers/0049.jpg
Normal file
After Width: | Height: | Size: 486 KiB |
BIN
.local/share/wallpapers/0050.jpg
Normal file
After Width: | Height: | Size: 315 KiB |
BIN
.local/share/wallpapers/0051.jpg
Normal file
After Width: | Height: | Size: 269 KiB |
BIN
.local/share/wallpapers/0052.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
.local/share/wallpapers/0053.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
.local/share/wallpapers/0054.jpg
Normal file
After Width: | Height: | Size: 494 KiB |
BIN
.local/share/wallpapers/0055.jpg
Normal file
After Width: | Height: | Size: 2.2 MiB |
BIN
.local/share/wallpapers/0056.jpg
Normal file
After Width: | Height: | Size: 837 KiB |
BIN
.local/share/wallpapers/0057.jpg
Normal file
After Width: | Height: | Size: 295 KiB |
BIN
.local/share/wallpapers/0058.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
.local/share/wallpapers/0059.jpg
Normal file
After Width: | Height: | Size: 4 MiB |
BIN
.local/share/wallpapers/0060.jpg
Normal file
After Width: | Height: | Size: 112 KiB |
BIN
.local/share/wallpapers/0061.jpg
Normal file
After Width: | Height: | Size: 2.8 MiB |
BIN
.local/share/wallpapers/0062.jpg
Normal file
After Width: | Height: | Size: 444 KiB |
BIN
.local/share/wallpapers/0063.jpg
Normal file
After Width: | Height: | Size: 371 KiB |
BIN
.local/share/wallpapers/0064.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
.local/share/wallpapers/0065.jpg
Normal file
After Width: | Height: | Size: 411 KiB |
BIN
.local/share/wallpapers/0066.jpg
Normal file
After Width: | Height: | Size: 214 KiB |
BIN
.local/share/wallpapers/0067.jpg
Normal file
After Width: | Height: | Size: 4.1 MiB |
BIN
.local/share/wallpapers/0068.jpg
Normal file
After Width: | Height: | Size: 675 KiB |
BIN
.local/share/wallpapers/0069.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
.local/share/wallpapers/0070.jpg
Normal file
After Width: | Height: | Size: 3.5 MiB |
BIN
.local/share/wallpapers/0071.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
.local/share/wallpapers/0072.jpg
Normal file
After Width: | Height: | Size: 247 KiB |
BIN
.local/share/wallpapers/0073.jpg
Normal file
After Width: | Height: | Size: 640 KiB |
BIN
.local/share/wallpapers/0074.jpg
Normal file
After Width: | Height: | Size: 488 KiB |
BIN
.local/share/wallpapers/0075.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
.local/share/wallpapers/0076.jpg
Normal file
After Width: | Height: | Size: 3.6 MiB |
BIN
.local/share/wallpapers/0077.jpg
Normal file
After Width: | Height: | Size: 283 KiB |
BIN
.local/share/wallpapers/0078.jpg
Normal file
After Width: | Height: | Size: 260 KiB |
BIN
.local/share/wallpapers/0079.jpg
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
.local/share/wallpapers/0080.jpg
Normal file
After Width: | Height: | Size: 449 KiB |
BIN
.local/share/wallpapers/0081.jpg
Normal file
After Width: | Height: | Size: 529 KiB |
BIN
.local/share/wallpapers/0082.jpg
Normal file
After Width: | Height: | Size: 242 KiB |
BIN
.local/share/wallpapers/0083.jpg
Normal file
After Width: | Height: | Size: 229 KiB |
BIN
.local/share/wallpapers/0084.jpg
Normal file
After Width: | Height: | Size: 629 KiB |
BIN
.local/share/wallpapers/0085.jpg
Normal file
After Width: | Height: | Size: 5 MiB |
BIN
.local/share/wallpapers/0086.jpg
Normal file
After Width: | Height: | Size: 428 KiB |