Adds Arch Linux dotfiles

This commit is contained in:
2024-06-27 17:51:18 +05:30
commit 57eb70137b
309 changed files with 8851 additions and 0 deletions

236
waybar/config.jsonc Normal file
View File

@@ -0,0 +1,236 @@
// -*- mode: jsonc -*-
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"hyprland/workspaces",
"sway/mode",
"sway/scratchpad",
"custom/media",
"custom/keyboard-state"
],
"modules-center": [
// "group/quicklinks",
// "hyprland/window",
"clock"
],
"modules-right": [
"mpd",
"pulseaudio",
// "network",
"power-profiles-daemon",
"cpu",
// "memory",
"custom/mem",
"temperature",
"backlight",
"keyboard-state",
"sway/language",
"battery",
"battery#bat2",
"custom/exit",
"tray"
],
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"warp-on-scroll": false,
"format": "{}",
"format-icons": {
"urgent": "",
"focused": "",
"default": ""
},
"persistent-workspaces": {
"*": 5
}
},
"custom/keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"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": 5,
"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",
"format": "{:%a %b %d, %Y, %I:%M %p}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"custom/mem": {
"format": "{} ",
"interval": 3,
"exec": "free -h | awk '/Mem:/{printf $3}'",
"tooltip": false,
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-full": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"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
},
"custom/exit": {
"format": "",
"on-click": "wlogout",
"tooltip-format": "Power Menu"
},
"group/quicklinks": {
"orientation": "horizontal",
"modules": [
"custom/browser",
"custom/filemanager",
]
},
"custom/browser": {
"format": "",
"on-click": "~/.config/hypr/scripts/browser.sh",
"tooltip-format": "Open browser"
},
// Filemanager Launcher
"custom/filemanager": {
"format": "",
"on-click": "~/.config/hypr/scripts/filemanager.sh",
"tooltip-format": "Open filemanager"
}
}

273
waybar/style.css Normal file
View File

@@ -0,0 +1,273 @@
@import url("/home/indrajith/.cache/wal/colors-waybar.css");
* {
all: unset;
font-family: 'EnvyCodeR Nerd Font';
transition: background-color .3s ease;
color: @foreground
}
tooltip,
#tray menu{
background: @background;
border: 2px solid @color12;
border-radius: 7.5px;
color: @foreground;
padding: 5px;
}
#tray menu * {
border-radius: 2.5px;
transition: all .3s ease;
}
#tray menu *:hover {
background: @color1;
}
window#waybar {
background: transparent;
}
window#waybar.hidden {
opacity: 0.2;
}
window {
background: transparent;
}
#custom-sep {
color: @color1;
font-size: 20px;
}
#custom-sep2 {
color: transparent;
font-size: 4px;
}
.modules-right {
padding-top: 0;
}
.modules-center {
padding: 0;
}
#workspaces>button.empty {
color: @color8;
}
#workspaces>button.urgent {
color: @color2;
}
#workspaces>button.active {
color: @foreground;
background: #9b59b6;
}
#workspaces>button {
color: @foreground;
font-size: 12.5px;
transition: all 0.3s ease;
padding: 0 6px;
margin: 0;
border-radius: 2.5px;
}
#workspaces>button:nth-child(1) {
border-radius: 100px 16px 16px 100px
}
#workspaces>button:last-child {
border-radius: 16px 100px 100px 16px
}
#group-player {
background-color: @color1;
border-radius: 16px 100px 100px 16px;
padding: 0 16px;
}
#group-power {
padding: 7px;
}
#custom-notif {
padding: 2.5px 15px;
border-radius: 100px;
margin: 7.5px;
background: @color3;
}
#custom-infolabel {
font-size: 20px;
margin-right: 5px;
padding: 0 5px;
padding-right: 5px;
}
#tray {
padding: 2px;
background: @foreground;
border-radius: 16px 100px 100px 16px;
}
#clock {
padding-left: 10px;
padding-right: 10px;
border-radius: 16px;
font-weight: bold;
border: 1px solid #e74c3c;
}
#win {
padding: 2px 7px;
background-color: @color1;
border-radius: 16px 100px 100px 16px;
min-width: 20px;
}
#window {
color: @foreground;
padding-left: 5px;
padding-right: 5px;
}
#window.win2 {
color: @foreground;
opacity: 0.7;
}
#group-info {
background: @color1;
margin: 0;
border-radius: 16px 100px 100px 16px;
}
#pulseaudio {
background-color: #2ecc71;
padding: 0 8px;
margin: 2px;
border-radius: 2px;
/* border-radius: 100px 16px 16px 100px; */
color: #ffffff;
}
#taskbar button {
margin: 5px 0;
transition: all .3s ease;
}
#taskbar button.active {
margin: 0 0 10px 0;
}
#cpu {
background-color: #f1c40f;
padding: 0 10px;
margin: 1px;
border-radius: 3.5px;
color: #ffffff;
}
#custom-pacman {
background-color: @color3;
padding: 0 10px;
margin: 1px;
border-radius: 3.5px;
}
#memory {
background-color: #3498db;
padding: 0 10px;
margin: 1px;
border-radius: 3.5px;
color: #ffffff;
margin-left: 10px;
margin-right: 10px;
}
#custom-mem {
margin-left: 10px;
margin-right: 10px
}
#battery {
background-color: @color7;
padding: 0 10px;
margin: 1px;
border-radius: 3.5px;
}
#custom-kb {
background-color: @color6;
padding: 0 10px;
margin: 1px;
border-radius: 3.5px;
}
#backlight {
background-color: @color4;
padding: 0 10px;
margin: 1px;
border-radius: 3.5px;
}
#disk {
background-color: @color5;
padding: 0 10px;
margin: 1px;
border-radius: 16px 100px 100px 16px;
}
#custom-wal {
background-color: @color6;
padding: 0 10px;
border-radius: 100px 16px 16px 100px;
font-size: 20px;
}
#custom-sback,
#custom-playpause,
#custom-sfw {
margin: 8px 2px;
border-radius: 3.5px;
padding: 2px 8px;
}
#custom-sback {
background: @color3;
}
#custom-playpause {
background: @color4;
}
#custom-sfw {
background: @color5;
}
.modules-left,
.modules-center{
background: @background;
border: 2px solid @color12;
border-radius: 100px;
padding: 2px 2px;
}
/* .modules-right {
} */
#custom-exit {
padding-right: 10px;
}
#custom-browser,
#custom-filemanager {
margin-right: 23px;
}