Add Config Files

This commit is contained in:
ayushDumasia 2024-09-12 22:26:43 +05:30
parent ade387bdb6
commit f071a73fdb
520 changed files with 45353 additions and 1 deletions

140
.config/waybar/config.jsonc Normal file
View file

@ -0,0 +1,140 @@
{
"layer": "top",
"margin-left": 16,
"margin-right": 16,
"margin-top": 4,
"margin-bottom": 4,
"modules-left": ["custom/launcher", "hyprland/workspaces", "cpu", "memory", "temperature"],
"modules-center": ["clock", "custom/weather"],
"modules-right": ["custom/update", "custom/wallpaper", "pulseaudio", "backlight", "network", "bluetooth", "battery", "custom/powerctl"],
"custom/launcher": {
"format": "",
"tooltip": false,
"on-click" : " ~/.config/rofi/launchers/type-7/launcher.sh"
},
"hyprland/workspaces": {
"disable-scroll": false,
"sort-by-name": true,
"format": " {icon} ",
"format-icons": {
"active": "●",
"default": "○"
},
"persistent-workspaces": {
"*": 6
},
"on-scroll-up" : "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
},
"cpu": {
"interval": 1,
"format": "{usage}% <span font='Font Awesome 5 Free'>\uf2db</span>",
"on-click": "kitty btop"
},
"memory": {
"interval": 1,
"format": "{percentage}% <span font='Font Awesome 5 Free'>\uf538</span>",
"on-click": "kitty btop",
"tooltip-format": "{used}/{total} GiB"
},
"custom/update": {
"interval": 86000,
"format": "{}",
"exec": "~/.config/waybar/scripts/check-updates.sh",
"on-click": "kitty yay",
"tooltip": false
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"scrolllock": false,
"format": "{name} {icon}",
"format-icons": {
"locked": "\uf023",
"unlocked": "\uf3c1"
}
},
"clock": {
"timezone": "Asia/Kolkata",
"tooltip": false,
"format": "{:%a, %d %b | %H:%M}"
},
"custom/weather": {
"format": "{}°C",
"tooltip": false,
"interval": 3600,
"exec": "wttrbar --location 'Ahmedabad'",
"return-type": "json"
},
"custom/wallpaper": {
"format": "\uf03e",
"on-click": "~/.config/waybar/scripts/change-wallpaper.sh && hyprpaper",
"tooltip": false
},
"temperature": {
"interval": 1,
"thermal-zone": 6,
"critical-threshold": 80,
"format-critical": "{temperatureC}°C <span font='Font Awesome 5 Free'></span>",
"format": "{temperatureC}°C <span font='Font Awesome 5 Free'></span>",
"tooltip": false
},
"pulseaudio": {
"format": "<span font='Font Awesome 5 Free'>{icon}</span>",
"format-muted": "<span font='Font Awesome 5 Free'>\uf6a9</span>",
"format-icons": {
"headphone": "\uf025",
"default": "\uf028"
},
"tooltip" : true,
"tooltip-format": "{volume%} | {desc}",
"on-click": "pamixer -t"
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}",
"format-icons": ["<span font='Font Awesome 5 Free' size='16pt' rise='-1250'> ☼</span>"],
"tooltip-format": "{percent}%",
"tooltip": true
},
"network": {
"format-wifi": "{icon}",
"format-icons": ["󰤟", "󰤢", "󰤥", "󰤨"],
"format-ethernet": "󱎔",
"format-linked": "󰌷",
"format-disconnected": "󰪎",
"tooltip-format-wifi": "{essid}\n{signalStrength}󰏰\n{ifname}\n{gwaddr}",
"tooltip-format-ethernet": "󱎔 {ifname}",
"tooltip-disconnected": "Disconnected",
"on-click": "~/.config/rofi/wifi.sh"
},
"bluetooth": {
"format": "󰂯",
"format-disabled": "󰂲",
"format-off": "󰂲",
"format-connected": "󰂱",
"format-connected-battery": "󰂱 {device_battery_percentage}󰏰",
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
},
"battery": {
"states": {
"good": 100,
"warning": 40,
"low": 20,
"critical": 7
},
"interval": 1,
"format": "{capacity}% <span font='Font Awesome 5 Free'>{icon}</span>",
"format-charging": "{capacity}% <span font='Font Awesome 5 Free'>\uf0e7</span>",
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"]
},
"custom/powerctl": {
"tooltip": false,
"format": "\uf011",
"on-click": "~/.config/rofi/powermenu/type-5/powermenu.sh"
}
}

13
.config/waybar/mocha.css Normal file
View file

@ -0,0 +1,13 @@
:root {
--base: #3c3836; /* Base background color */
--text: #ebdbb2; /* Text color */
--green: #b8bb26; /* Green */
--red: #fb4934; /* Red */
--lavender: #d5c4a1; /* Lavender */
--flamingo: #ea6a6a; /* Flamingo */
--mauve: #c79dff; /* Mauve */
--blue: #83a598; /* Blue */
--rosewater: #f5e0dc; /* Rosewater */
--yellow: #fabd2f; /* Yellow */
--peach: #f2b5d4; /* Peach */
}

View file

@ -0,0 +1,14 @@
# !/usr/bash
if [ $(pgrep -c hyprpaper) -ne 0 ] ; then
hyprctl hyprpaper unload all
killall hyprpaper
fi
TARGET="/home/archer/Downloads/wallpaper"
WALLPAPER=$( find $TARGET -type f -regex '.*\.\(jpg\|jpeg\|png\|webp\)' | shuf -n 1 )
echo "preload = $WALLPAPER" > /home/archer/.config/hypr/hyprpaper.conf
echo "wallpaper = eDP-1, $WALLPAPER" >> /home/archer/.config/hypr/hyprpaper.conf
echo "splash = on" >> /home/archer/.config/hypr/hyprpaper.conf
echo "ipc = off" >> /home/archer/.config/hypr/hyprpaper.conf

View file

@ -0,0 +1,17 @@
# !/usr/bash
sleep 60s
PACMAN_UPDATES_COUNT=$( checkupdates | wc -l)
sleep 30s
AUR_UPDATES_COUNT=$(pacman -Qm | aur vercmp | wc -l)
sleep 30s
TOTAL_UPDATES_COUNT=$((PACMAN_UPDATES_COUNT+AUR_UPDATES_COUNT))
if [ $TOTAL_UPDATES_COUNT -gt 0 ] ; then
echo -e "\uf019"
fi

View file

@ -0,0 +1,11 @@
# !/usr/bash
CURRENT_BRIGHTNESS=$( brightnessctl -m | awk -F, '{print $4}' | tr -d % )
OLD_BRIGHTNESS=$( cat /etc/xdg/waybar/scripts/old-brightness.txt )
if [ "$CURRENT_BRIGHTNESS" -ne 1 ] ; then
echo "$CURRENT_BRIGHTNESS" > /etc/xdg/waybar/scripts/old-brightness.txt;
brightnessctl set 1%;
else
brightnessctl set "$OLD_BRIGHTNESS"%;
fi

212
.config/waybar/style.css Normal file
View file

@ -0,0 +1,212 @@
* {
border: none;
border-radius: 8px;
font-family: "JetbrainsMono Nerd Font Mono";
font-size: 16px;
}
window#waybar {
background: transparent;
}
window#waybar.hidden {
opacity: 0.2;
}
#custom-launcher {
font-size: 24px;
margin-right: 8px;
padding: 0px 16px;
transition: none;
color: #89DCEB; /* Sapphire */
background: #1e1e2e; /* Base */
}
button:hover {
box-shadow: inherit;
text-shadow: inherit;
background: inherit;
}
#workspaces {
padding: 0px 8px;
margin-right: 8px;
background: #1e1e2e; /* Base */
}
#workspaces button {
padding: 0px;
color: #cba6f7; /* Green */
}
#workspaces button:hover {
color: #f38ba8; /* Red */
}
#cpu {
border-radius: 8px 0px 0px 8px;
padding: 0px 16px;
color: #cdd6f4; /* Text */
background: #1e1e2e; /* Base */
}
#memory {
border-radius: 0px 8px 8px 0px;
padding: 0px 16px;
padding-left: 0px;
margin-right: 8px;
color: #cdd6f4; /* Text */
background: #1e1e2e; /* Base */
}
#custom-update {
font-family: "Font Awesome 5 Free";
padding: 0px 16px;
padding-right: 22px;
margin-right: 8px;
color: #b4befe; /* Lavender */
background: #1e1e2e; /* Base */
}
#keyboard-state {
font-family: "Font Awesome 5 Free";
padding: 0px 16px;
margin-right: 8px;
color: #f38ba8; /* Flamingo */
background: #1e1e2e; /* Base */
}
#clock {
padding: 0px 16px;
margin-right: 8px;
color: #eff1f5; /* Text */
background: #1e1e2e; /* Base */
}
#custom-weather {
padding: 0px 16px;
color: #eff1f5; /* Text */
background: #1e1e2e; /* Base */
}
#custom-wallpaper {
font-family: "Font Awesome 5 Free";
padding: 0px 16px;
margin-right: 8px;
color: #d5c4a1; /* Mauve */
background: #1e1e2e; /* Base */
}
#temperature {
padding: 0px 16px;
margin-right: 8px;
color: #89b4fa; /* Blue */
background: #1e1e2e; /* Base */
}
#temperature.gpu {
border-radius: 0px 8px 8px 0px;
padding: 0px 16px;
padding-left: 0px;
margin-right: 8px;
color: #89b4fa; /* Blue */
background: #1e1e2e; /* Base */
}
#temperature.critical, #temperature.gpu.critical {
color: #d20f39; /* Red */
}
#pulseaudio {
border-radius: 8px 0px 0px 8px;
padding: 0px 16px;
color: #f5e0dc; /* Rosewater */
background: #1e1e2e; /* Base */
}
#pulseaudio.muted {
padding: 0px 16px;
padding-right: 8px;
}
#backlight {
border-radius: 0px 8px 8px 0px;
padding: 0px 16px;
padding-left: 2px;
margin-right: 8px;
color: #f5e0dc; /* Rosewater */
background: #1e1e2e; /* Base */
}
#network {
font-family: "Font Awesome 5 Free";
border-radius: 8px 0px 0px 8px;
padding: 0px 16px;
color: #f9e2af; /* Yellow */
background: #1e1e2e; /* Base */
}
#bluetooth {
font-family: "Font Awesome 5 Free";
border-radius: 0px 8px 8px 0px;
padding: 0px 16px;
padding-left: 0px;
margin-right: 8px;
color: #f9e2af; /* Yellow */
background: #1e1e2e; /* Base */
}
#battery {
padding: 0px 16px;
padding-right: 24px;
margin-right: 8px;
color: #fab387; /* Peach */
background: #1e1e2e; /* Base */
}
#battery.charging {
padding: 0px 16px;
color: #eff1f5; /* Text */
background: #40a02b; /* Green */
}
#battery.good:not(.charging) {
color: #fab387; /* Peach */
background: #1e1e2e; /* Base */
}
#battery.warning:not(.charging) {
color: #eff1f5; /* Text */
background: #df8e1d; /* Yellow */
}
#battery.low:not(.charging) {
color: #eff1f5; /* Text */
background: #d20f39; /* Red */
}
#battery.critical:not(.charging) {
color: #eff1f5; /* Text */
background: #d20f39; /* Red */
animation-name: blink;
animation-duration: 0.75s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
@keyframes blink {
to {
color: #d20f39; /* Red */
background: #eff1f5; /* Text */
}
}
#custom-powerctl {
font-family: "Font Awesome 5 Free";
padding: 0px 16px;
padding-right: 20px;
color: #40a02b; /* Green */
background: #1e1e2e; /* Base */
}