refactor 🔨: Too many

This commit is contained in:
Ayush Dumasia 2025-06-06 18:54:56 +05:30
parent 76b3ca98e7
commit c697c5e352
4 changed files with 134 additions and 105 deletions

View file

@ -1,78 +1,98 @@
// Inspired by Catnap
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "small",
"padding": {
"top": 1,
"bottom": 1,
"left": 5,
"right": 5
"top": 2,
"right": 2
}
// "source": "~/.config/fastfetch/icons/arch.txt"
},
"display": {
"separator": " "
"separator": " ",
"key": {
"width": 16
}
},
"modules": [
{
"type": "os",
"key": " ",
"keyColor": "blue"
"key": "╭───────────╮",
"type": "custom"
},
{
"type": "users",
"key": " ",
"keyColor": "blue"
// draw borders first to make colors of left and right border consistant
"key": "│ │\u001b[11D{#31} user",
"type": "title",
"format": "{1}"
},
{
"type": "kernel",
"key": " ",
"keyColor": "black"
},
{
"type": "packages",
"key": " ",
"keyColor": "cyan"
},
{
"type": "shell",
"key": " ",
"keyColor": "dim_"
"key": "├───────────┤",
"type": "custom"
},
// {
// "type": "terminal",
// "key": " ",
// "keyColor": "green"
// "key": "│ │\u001b[11D{#32}󰇅 hname",
// "type": "title",
// "format": "{2}"
// },
// {
// "key": "│ │\u001b[11D{#33}󰅐 uptime",
// "type": "uptime"
// },
{
"type": "wm",
"key": " ",
"keyColor": "red"
"key": "│ │\u001b[11D{#34}󰟾 distro",
"type": "os"
},
{
"key": "│ │\u001b[11D{#35} kernel",
"type": "kernel"
},
{
"key": "│ │\u001b[11D{#36}󰇄 desktop",
"type": "de"
},
{
"key": "│ │\u001b[11D{#31} term",
"type": "terminal"
},
{
"key": "│ │\u001b[11D{#31} wm",
"type": "wm"
},
{
"key": "│ │\u001b[11D{#32} shell",
"type": "shell"
},
// {
// "type": "uptime",
// "key": " ",
// "keyColor": "cyan"
// "key": "│ │\u001b[11D{#33}󰍛 cpu",
// "type": "cpu",
// "showPeCoreCount": true
// },
{
"type": "cpu",
"key": " ",
"keyColor": "blue"
},
// {
// "type": "btrfs",
// "key": " ",
// "keyColor": "red"
// },
{
"type": "gpu",
"key": " ",
"keyColor": "green"
"key": "│ │\u001b[11D{#34}󰉉 disk",
"type": "disk",
"folders": "/"
},
{
"type": "memory",
"key": "󰍛 ",
"keyColor": "yellow"
"key": "│ │\u001b[11D{#35} memory",
"type": "memory"
},
{
"key": "│ │\u001b[11D{#36}󰩟 network",
"type": "localip",
"format": "{1} ({4})"
},
{
"key": "├───────────┤",
"type": "custom"
},
{
"key": "│ │\u001b[11D{#39} colors",
"type": "colors",
"symbol": "circle"
},
{
"key": "╰───────────╯",
"type": "custom"
}
]
}

View file

@ -31,28 +31,28 @@
# # }
# # TIME
# label {
# monitor =
# text = $TIME
# color = $text
# font_size = 90
# font_family = $font
# position = -30, 0
# halign = right
# valign = top
# }
label {
monitor =
text = $TIME
color = $text
font_size = 90
font_family = JetBrainsMono Nerd Font
position = -40, 10
halign = right
valign = top
}
# # DATE
# label {
# monitor =
# text = cmd[update:43200000] date +"%A, %d %B %Y"
# color = $text
# font_size = 20
# font_family = $font
# position = -30, -150
# halign = right
# valign = top
# }
label {
monitor =
text = cmd[update:43200000] date +"%A, %d %B %Y"
color = $text
font_size = 20
font_family = JetBrainsMono Nerd Font
position = -30, -150
halign = right
valign = top
}
# # USER AVATAR
# # image {
@ -92,7 +92,7 @@
background {
monitor =
path = /home/arcadian/Pictures/Wallpaper/nw9975ixkyqe1.png
path = /home/arcadian/Pictures/Wallpaper/0297.jpg
# only png supported for now
}
@ -126,31 +126,31 @@ input-field {
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$TIME"
color = rgba(a6adc8)
font_size = 55
font_family = JetBrainsMono Nerd Font
position = -100, 40
halign = right
valign = bottom
shadow_passes = 5
shadow_size = 10
}
# label {
# monitor =
# text = cmd[update:1000] echo "$TIME"
# color = rgba(a6adc8)
# font_size = 55
# font_family = JetBrainsMono Nerd Font
# 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 = JetBrainsMono Nerd Font
position = -100, 160
halign = right
valign = bottom
shadow_passes = 5
shadow_size = 10
}
# label {
# monitor =
# text = Hello
# color = rgba(a6adc8)
# font_size = 20
# font_family = JetBrainsMono Nerd Font
# position = -100, 160
# halign = right
# valign = bottom
# shadow_passes = 5
# shadow_size = 10
# }
# image {
# monitor =

View file

@ -210,4 +210,13 @@ export PATH="$HOME/.cargo/bin:$PATH"
alias todo='~/.todo/todo_tui.sh'
alias todocli='~/.todo/todo_cli.sh'
fastfetch
# fastfetch
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
if tmux has-session -t default 2>/dev/null; then
tmux new-window -t default
tmux attach-session -t default
else
tmux new-session -s default
fi
fi