added config files

This commit is contained in:
Gaurav Bankar
2024-06-09 19:28:48 +05:30
parent 9968879d1e
commit c150b128b3
8 changed files with 534 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 60 # 1min.
on-timeout = brightnessctl -s set 5 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}
listener {
timeout = 120 # 2min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 300 # 5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 900 # 30min
on-timeout = systemctl suspend # suspend pc
}

View File

@@ -0,0 +1,75 @@
background {
monitor =
path = ~/.config/assets/backgrounds/cat_leaves_blurred.png # only png supported for now
}
input-field {
monitor =
size = 200, 50
outline_thickness = 3
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
dots_rounding = -1 # -1 default circle, -2 follow input-field rounding
outer_color = rgb(a6adc8)
inner_color = rgb(11111b)
font_color = rgb(a6adc8)
fade_on_empty = true
fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered.
placeholder_text = <i>Input Password...</i> # Text rendered in the input box when it's empty.
hide_input = false
rounding = -1 # -1 means complete rounding (circle/oval)
check_color = rgb(204, 136, 34)
fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
fail_transition = 100 # transition time in ms between normal outer_color and fail_color
capslock_color = -1
numlock_color = -1
bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above)
invert_numlock = false # change color if numlock is off
swap_font_color = false # see below
position = 0, -20
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$TIME"
color = rgba(a6adc8)
font_size = 55
font_family = Fira Semibold
position = -100, -40
halign = right
valign = bottom
shadow_passes = 5
shadow_size = 10
}
label {
monitor =
text = Hello
color = rgba(a6adc8)
font_size = 20
font_family = Fira Semibold
position = -100, 160
halign = right
valign = bottom
shadow_passes = 5
shadow_size = 10
}
image {
monitor =
path = ~/.config/assets/backgrounds/cat_pacman.png
size = 280 # lesser side if not 1:1 ratio
rounding = -1 # negative values mean circle
border_size = 4
border_color = rgb(a6adc8)
rotate = 0 # degrees, counter-clockwise
reload_time = -1 # seconds between reloading, 0 to reload with SIGUSR2
# reload_cmd = # command to get new path. if empty, old path will be used. don't run "follow" commands like tail -F
position = 0, 200
halign = center
valign = center
}

18
configs/tofi/configA Normal file
View File

@@ -0,0 +1,18 @@
width = 100%
height = 100%
border-width = 0
outline-width = 0
padding-left = 33%
padding-top = 33%
result-spacing = 25
num-results = 5
font = JetBrainsMono Nerd Font
font-size = 24
text-color = #4e4e5f
prompt-text = " : "
background-color = #11111bd9
selection-color = #83A4E7

20
configs/tofi/configV Normal file
View File

@@ -0,0 +1,20 @@
width = 100%
height = 100%
border-width = 0
outline-width = 0
padding-top = 33%
padding-left = 10%
padding-right = 10%
result-spacing = 25
num-results = 5
font = JetBrainsMono Nerd Font
font-size = 24
text-color = #4e4e5f
prompt-text = " : "
background-color = #11111bd9
selection-color = #83A4E7

146
configs/waybar/config.jsonc Normal file
View File

@@ -0,0 +1,146 @@
{
"layer": "top",
"position": "top",
"mode": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 0,
"modules-left": [
"clock",
"hyprland/workspaces"
],
"modules-center": ["hyprland/window"],
"modules-right": [
"tray",
"memory",
"cpu",
"network",
"battery",
"backlight",
"pulseaudio",
"pulseaudio#microphone"
],
"hyprland/window": {
"format": "󰣇 {}"
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate"
//"format": "{icon}",
},
"tray": {
"icon-size": 13,
"spacing": 10
},
"clock": {
"format": "{:%A  %B-%d-%Y  %I:%M:%S %p}",
"interval": 1,
"rotate": 0,
"tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"mode": "month",
"mode-mon-col": 3,
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#a6adc8'><b>{}</b></span>",
"weekdays": "<span color='#a6adc8'><b>{}</b></span>",
"today": "<span color='#a6adc8'><b>{}</b></span>",
"days": "<span color='#555869'><b>{}</b></span>"
}
}
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"],
"on-scroll-up": "brightnessctl set 1%+",
"on-scroll-down": "brightnessctl set 1%-",
"min-length": 6
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["󰂃", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
},
"pulseaudio": {
"format": "{icon} {volume}%",
"tooltip": false,
"format-muted": " Muted",
"on-click": "pamixer -t",
"on-scroll-up": "pamixer -d 1",
"on-scroll-down": "pamixer -i 1",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["","", "", ""]
}
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": " Muted",
"on-click": "pamixer --default-source -t",
"on-scroll-up": "pamixer --default-source -i 5",
"on-scroll-down": "pamixer --default-source -d 5",
"scroll-step": 5
},
"memory": {
"states": {
"c": 90, // critical
"h": 60, // high
"m": 30 // medium
},
"interval": 10,
"format": "󰾆 {used}GB",
"format-m": "󰾅 {used}GB",
"format-h": "󰓅 {used}GB",
"format-c": " {used}GB",
"format-alt": "󰾆 {percentage}%",
"max-length": 10,
"tooltip": true,
"tooltip-format": "󰾆 {percentage}%\n {used:0.1f}GB/{total:0.1f}GB"
},
"cpu": {
"interval": 10,
"format": "󰍛 {usage}%",
"format-alt": "{icon0}{icon1}{icon2}{icon3}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
},
"network": {
"tooltip": true,
"format-wifi": " {essid}",
"format-ethernet": "󰈀 ",
"tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
"format-linked": "󰈀 {ifname} (No IP)",
"format-disconnected": "󰖪 ",
"tooltip-format-disconnected": "Disconnected",
"format-alt": "<span foreground='#99ffdd'> {bandwidthDownBytes}</span> <span foreground='#ffcc66'> {bandwidthUpBytes}</span>",
"interval": 2
}
}

123
configs/waybar/style.css Normal file
View File

@@ -0,0 +1,123 @@
* {
border: none;
border-radius: 0;
font-family: JetBrainsMono Nerd Font, monospace;
font-weight: bold;
font-size: 14px;
min-height: 0;
}
window#waybar {
background: rgba(21, 18, 27, 0);
color: #cdd6f4;
}
#workspaces button {
padding: 5px;
color: #555869;
margin-right: 5px;
}
#workspaces button.active {
color: #a6adc8;
}
#workspaces button.focused {
color: #a6adc8;
background: #eba0ac;
border-radius: 10px;
}
#workspaces button.urgent {
color: #11111b;
background: #a6e3a1;
border-radius: 10px;
}
#workspaces button:hover {
background: #cdd6f4;
color: #11111b;
border-radius: 10px;
}
#window,
#clock,
#battery,
#pulseaudio,
#network,
#cpu,
#memory,
#workspaces,
#tray,
#backlight {
background: #1e1e2e;
padding: 0px 10px;
margin: 3px 0px;
margin-top: 5px;
/* border: 1px solid #181825; */
}
#backlight {
border-radius: 10px 0px 0px 10px;
}
#tray {
border-radius: 10px;
margin-right: 10px;
}
#workspaces {
background: #1e1e2e;
border-radius: 10px;
margin-left: 10px;
padding-right: 0px;
padding-left: 5px;
}
#cpu {
border-radius: 0px 10px 10px 0px;
margin-right: 10px;
}
#memory {
border-radius: 10px 0px 0px 10px;
}
#window {
border-radius: 10px;
margin-left: 60px;
margin-right: 60px;
}
#clock {
color: #a6adc8;
border-radius: 10px 10px 10px 10px;
margin-left: 5px;
border-right: 0px;
}
#network {
color: #a6adc8;
border-radius: 10px 0px 0px 10px;
}
#pulseaudio {
color: #a6adc8;
border-left: 0px;
border-right: 0px;
}
#pulseaudio.microphone {
color: #a6adc8;
border-radius: 0px 10px 10px 0px;
border-left: 0px;
border-right: 0px;
margin-right: 5px;
}
#battery {
color:#a6adc8;
border-radius: 0px 10px 10px 0px;
margin-right: 10px;
}

37
configs/wlogout/layout Normal file
View File

@@ -0,0 +1,37 @@
{
"label" : "exit",
"action" : "",
"text" : "Exit",
"keybind" : "h"
}
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "s"
}
{
"label" : "suspend",
"action" : "systemctl suspend-then-hibernate",
"text" : "Suspend",
"keybind" : "u"
}
{
"label" : "lock",
"action" : "hyprlock",
"text" : "Lock",
"keybind" : "l"
}
{
"label" : "logout",
"action" : "hyprctl dispatch exit",
"text" : "Logout",
"keybind" : "e"
}
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
}

88
configs/wlogout/style.css Normal file
View File

@@ -0,0 +1,88 @@
* {
font-family: JetBrains Mono, Symbols Nerd Font;
font-size: 24px;
transition-property: background-color;
transition-duration: 0.7s;
}
window {
background-color: #11111b;
/* border-radius: 10px; */
}
button {
background-color: #11111b;
border-style: solid;
/* border-width: 2px; */
border-radius: 50px;
background-repeat: no-repeat;
background-position: center;
background-size: 15%;
margin: 15px;
}
button:active,
button:hover {
background-color: #cdd6f4;
}
button:focus {
background-color: #cdd6f4;
}
#lock {
background-image: image(url("~/.config/assets/wlogout/assets/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
}
#lock:hover {
background-image: image(url("~/.config/assets/wlogout/assets/lock-hover.png"), url("/usr/local/share/wlogout/icons/lock.png"));
color: #11111b;
}
#logout {
background-image: image(url("~/.config/assets/wlogout/assets/logout.png"), url("/usr/local/share/wlogout/icons/logout.png"));
}
#logout:hover {
background-image: image(url("~/.config/assets/wlogout/assets/logout-hover.png"), url("/usr/local/share/wlogout/icons/logout.png"));
color: #11111b;
}
#suspend {
background-image: image(url("~/.config/assets/wlogout/assets/sleep.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
}
#suspend:hover {
background-image: image(url("~/.config/assets/wlogout/assets/sleep-hover.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
color: #11111b;
}
#shutdown {
background-image: image(url("/~.config/wassets/logout/assets/power.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
}
#shutdown:hover {
background-image: image(url("~/.config/assets/wlogout/assets/power-hover.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
color: #11111b;
}
#reboot {
background-image: image(url("~/.config/assets/wlogout/assets/restart.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
}
#reboot:hover {
background-image: image(url("~/.config/assets/wlogout/assets/restart-hover.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
color: #11111b;
}
#exit {
background-image: image(url("~/.config/assets/wlogout/assets/restart.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
background-color: #11111b;
}
#exit:hover {
background-image: image(url("~/.config/assets/wlogout/assets/restart-hover.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
color: #11111b;
background-color: #cdd6f4;
}