Skip to content

Instantly share code, notes, and snippets.

View t0m5k1's full-sized avatar
πŸ’­
πŸ€žπŸ»πŸ‡ΊπŸ‡¦ βœŒπŸ»πŸ™πŸ» πŸ€œπŸ»πŸ‘ˆπŸΏ 🐧πŸ–₯

t0m5k1 t0m5k1

πŸ’­
πŸ€žπŸ»πŸ‡ΊπŸ‡¦ βœŒπŸ»πŸ™πŸ» πŸ€œπŸ»πŸ‘ˆπŸΏ 🐧πŸ–₯
View GitHub Profile
@t0m5k1
t0m5k1 / scriptsupdates-chk.sh
Created September 16, 2024 17:46
scripts/updates-chk.sh
#!/bin/sh
#source https://github.com/x70b1/polybar-scripts
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
updates_arch=0
fi
# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then
if ! updates_aur=$(trizen -Suaq | wc -l); then
@t0m5k1
t0m5k1 / .configwaybarweather.sh
Last active September 16, 2024 17:48
.config/waybar/weather.sh
#!/bin/bash
# You can specify a location here if you want, e.g., LOCATION="London"
LOCATION="changeme"
# Fetch weather data
WEATHER_DATA=$(curl -s "wttr.in/$LOCATION?format=j1")
# Extract current weather information
TEMP=$(echo "$WEATHER_DATA" | jq -r '.current_condition[0].temp_C')
@t0m5k1
t0m5k1 / .configwaybarstyle.css
Created September 16, 2024 17:44
.config/waybar/style.css
* {
border: none;
border-radius: 0;
font-family: "Literation Mono Nerd Font", "Roboto", "Ubuntu", "Droid Sans", "Source Code Pro", monospace;
font-size: 14px;
min-height: 0;
}
window#waybar {
background: linear-gradient(90deg, rgba(43,48,59,0.5) 0%, rgba(29,32,33,0.5) 100%);
@t0m5k1
t0m5k1 / .configwaybarconfig
Created September 16, 2024 17:44
.config/waybar/config
{
"layer": "top",
"position": "bottom",
"height": 30,
"spacing": 4,
"modules-left": ["custom/logo", "hyprland/workspaces"],
"modules-center": ["mpris"],
"modules-right": ["pulseaudio", "cpu", "memory", "temperature", "custom/updates", "custom/weather", "clock", "tray"],
"custom/logo": {
@t0m5k1
t0m5k1 / style.css OLD
Last active September 16, 2024 18:32
.config/waybar/style.css
* {
border: none;
border-radius: 0;
/* `otf-font-awesome` is required to be installed for icons */
font-family: Liberation Mono;
min-height: 20px;
}
window#waybar {
background: transparent;
@t0m5k1
t0m5k1 / config OLD
Last active September 16, 2024 18:33
.config/waybar/config
{
"layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height)
//"margin": "20 20 0 20",
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["custom/launcher", "hyprland/workspaces", "hyprland/window"],
"modules-center": ["mpris"],
"modules-right": ["pulseaudio", "clock", "temperature", "custom/pacman", "tray"],
@t0m5k1
t0m5k1 / windowrules.conf
Last active August 3, 2024 16:00
.config/hypr/windowrules.conf
windowrule = float,^(chromium)$
windowrule = float,^(thunar)$
windowrule = float,^(Brave-browser)$
windowrule = float,^(brave-mail.google.com__-Default)$
windowrule = float,^(firefox)$
windowrule = float,^(pinentry)$
windowrule = float,^(gimp)$
windowrule = float,^(Gmrun)$
windowrule = float,^(Xfce4-notifyd)$
windowrule = float,^(Xfce4-appfinder)$
@t0m5k1
t0m5k1 / binds.conf
Last active August 3, 2024 16:01
.config/hypr/binds.conf
#bind = $mainMod, Q, exec, kitty
#bind = $mainMod, Q, exec, terminator
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
#bind = $mainMod, E, exec, dolphin
bind = $mainMod, E, exec, thunar
bind = $mainMod, V, togglefloating,
#bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, R, exec, /home/t0m5k1/.config/rofi/scripts/launcher_t6
@t0m5k1
t0m5k1 / hyprland.conf
Last active August 3, 2024 16:01
.config/hypr/hyprland.conf
# See https://wiki.hyprland.org/Configuring/Monitors/
#monitor=,preferred,auto,auto
monitor=DP-3,2560x1440@144,0x0,1
#
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
#
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = wpaperd
exec-once = waybar