Compare commits

..

4 Commits

Author SHA1 Message Date
48b18d03f1 newsboat 2025-01-26 18:34:42 +00:00
37f126cc48 waybar 2025-01-25 17:22:26 +00:00
950d1f4a7e rounded windows and waybar edits 2025-01-25 16:11:49 +00:00
eb95c2a06b rounded windows and waybar edits 2025-01-25 16:11:20 +00:00
506 changed files with 928 additions and 50361 deletions

416
.config/dunst/dunstrc Normal file
View File

@ -0,0 +1,416 @@
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a window manager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern window managers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
# The geometry of the window:
# [{width}]x{height}[+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectively.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "300x100-15+46"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = yes
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 0
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
# to the font height and padding.
notification_height = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 2
# Padding between text and separator.
padding = 8
# Horizontal padding.
horizontal_padding = 8
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 2
# Defines color of the frame around the notification window.
frame_color = "#000000"
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Sort messages by urgency.
sort = yes
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# A client can set the 'transient' hint to bypass this. See the rules
# section for how to disable this if necessary
idle_threshold = 120
### Text ###
font = Museo Sans 10
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
line_height = 0
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = center
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 60
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = yes
# When word_wrap is set to no, specify where to make an ellipsis in long lines.
# Possible values are "start", "middle" and "end".
ellipsize = middle
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Stack together notifications with the same content
stack_duplicates = true
# Hide the count of stacked notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Align icons left/right/off
icon_position = left
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 32
# Paths to default icons.
icon_path = /usr/share/icons/candy-icons/apps/scalable:/usr/share/icons/candy-icons/devices/scalable/
### History ###
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/rofi -dmenu
# Browser for opening urls in context menu.
browser = /usr/bin/firefox -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
# Manage dunst's desire for talking
# Can be one of the following values:
# crit: Critical features. Dunst aborts
# warn: Only non-fatal warnings
# mesg: Important Messages
# info: all unimportant stuff
# debug: all less than unimportant stuff
verbosity = mesg
# Define the corner radius of the notification window
# in pixel size. If the radius is 0, you have no rounded
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
corner_radius = 0
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
### mouse
# Defines action of mouse event
# Possible values are:
# * none: Don't do anything.
# * do_action: If the notification has exactly one action, or one is marked as default,
# invoke it. If there are multiple and no default, open the context menu.
# * close_current: Close current notification.
# * close_all: Close all notifications.
mouse_left_click = close_current
mouse_middle_click = do_action
mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys.
# Close notification.
close = ctrl+space
# Close all notifications.
close_all = ctrl+shift+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1". Make sure this key actually exists on your keyboard layout,
# e.g. check output of 'xmodmap -pke'
history = ctrl+grave
# Context menu.
context = ctrl+shift+grave
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#ebdbb2"
foreground = "#282828"
frame_color = "#b8bb26"
timeout = 7
# Icon for notifications with low urgency, uncomment to enable
icon = /home/javalsai/.config/dunst/images/notification-low.png
[urgency_normal]
foreground = "#ebdbb2"
background = "#282828"
frame_color = "#458588"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
icon = /home/javalsai/.config/dunst/images/notification.png
[urgency_critical]
foreground = "#ebdbb2"
background = "#282828"
frame_color = "#fb4934"
timeout = 15
# Icon for notifications with critical urgency, uncomment to enable
icon = /home/javalsai/.config/dunst/images/notification-critical.png
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
#
# Messages can be matched by
# appname (discouraged, see desktop_entry)
# body
# category
# desktop_entry
# icon
# match_transient
# msg_urgency
# stack_tag
# summary
#
# and you can override the
# background
# foreground
# format
# frame_color
# fullscreen
# new_icon
# set_stack_tag
# set_transient
# timeout
# urgency
#
# Shell-like globbing will get expanded.
#
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
# GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized.
#
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format
# to "".
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
# Disable the transient hint so that idle_threshold cannot be bypassed from the
# client
#[transient_disable]
# match_transient = yes
# set_transient = no
#
# Make the handling of transient notifications more strict by making them not
# be placed in history.
#[transient_history_ignore]
# match_transient = yes
# history_ignore = yes
# fullscreen values
# show: show the notifications, regardless if there is a fullscreen window opened
# delay: displays the new notification, if there is no fullscreen window active
# If the notification is already drawn, it won't get undrawn.
# pushback: same as delay, but when switching into fullscreen, the notification will get
# withdrawn from screen again and will get delayed like a new notification
#[fullscreen_delay_everything]
# fullscreen = delay
#[fullscreen_show_critical]
# msg_urgency = critical
# fullscreen = show
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# format = ""
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[skip-display]
# # This notification will not be displayed, but will be included in the history
# summary = "foobar"
# skip_display = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
#[stack-volumes]
# appname = "some_volume_notifiers"
# set_stack_tag = "volume"
#
# vim: ft=cfg

View File

@ -0,0 +1,78 @@
// _____ _____ _____ _____ _____ _____ _____ _____ _____
// | __| _ | __|_ _| __| __|_ _| | | |
// | __| |__ | | | | __| __| | | | --| |
// |__| |__|__|_____| |_| |__| |_____| |_| |_____|__|__| ARCH
//
// by Bina
// execute with: fastfetch --colors-block-range-start 9 --colors-block-width 3
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "~/pictures/pfp.png",
"width": 20,
"height": 10,
"padding": {
"top": 1,
"right": 0
}
},
"display": {
"separator": " "
},
"modules": [
{
"type": "colors",
"key": " ",
"symbol": "circle"
},
"break",
{
"type": "title",
"keyWidth": 10
},
{
"type": "os",
"key": " ",
"keyColor": "33", // = color3
},
{
"type": "kernel",
"key": " ",
"keyColor": "33",
},
{
"type": "shell",
"key": " ",
"keyColor": "33",
},
{
"type": "terminal",
"key": " ",
"keyColor": "33",
},
{
"type": "wm",
"key": " ",
"keyColor": "33",
},
{
"type": "uptime",
"key": " ",
"keyColor": "33",
},
{
"type": "media",
"key": "󰝚 ",
"keyColor": "33",
},
"break",
{
"type": "colors",
"key": " ",
"symbol": "circle"
},
]
}

View File

@ -0,0 +1,8 @@
abbr ssh "kitten ssh"
abbr push "git push"
abbr --set-cursor=! commit "git commit -m \"!\""
abbr add "git add ."
abbr vim "vim -N"
abbr in "sudo zypper in"
abbr up "sudo zypper up"
abbr ls "ls -t"

7
.config/fish/config.fish Normal file
View File

@ -0,0 +1,7 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
set -U fish_greeting
function fish_greeting
fastfetch
end

View File

@ -0,0 +1,33 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:brblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:blue
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:green
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:brcyan
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:brcyan
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:yellow
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:yellow\x1e\x2di
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
SETUVAR fish_user_paths:/home/deadvey/bin

Binary file not shown.

View File

@ -0,0 +1,8 @@
general {
lock_cmd = pidof hyprlock || hyprlock
listener {
timeout = 15 # 2.5min.
on-timeout = loginctl lock-session # set monitor backlight to minimum, avoid 0 on OLED monitor.
}

View File

@ -1,37 +1,76 @@
exec-once="hyprpaper"
exec-once="waybar"
exec-once="dunst"
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
decoration {
rounding = 0
rounding = 15
shadow {
range = 0
render_power = 1
color = rgba(282828ff)
color_inactive = rgba(000000ff)
offset = 0, 0
}
blur {
enabled = true
size = 3
passes = 2
}
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
}
general {
col.active_border = rgb(b8bb26)
col.inactive_border = rgb(282828)
border_size = 2
gaps_in = 10
gaps_out = 20
layout = master
}
master {
new_on_top = true
new_status = "master"
}
input {
kb_layout = gb
}
bind = SUPER, Q, exec, kitty --hold fastfetch
bind = SUPER, Q, exec, kitty
bind = SUPER, C, killactive,
bind = SUPER, M, fullscreen, 1
bind = SUPER SHIFT, M, fullscreen,
bind = SUPER, V, togglefloating,
bind = SUPER, Space, exec, fuzzel
bind = SUPER, P, exec, ~/bin/screenshot-w
bind = SUPER, J, togglesplit, # dwindle
bind = SUPER, P, exec, ~/bin/screenshot
bind = SUPER SHIFT, up, exec, pactl set-sink-volume 0 +5%
bind = SUPER SHIFT, down, exec, pactl set-sink-volume 0 -5%
bind = SUPER, F, fullscreen,
bind = SUPER, L, exec, hyprlock
bind = SUPER, O, exec, hyprlock
bind = SUPER SHIFT, E, exit
bind = SUPER SHIFT, F, exec, pcmanfm
# Move focus with mainMod + arrow keys
bind = SUPER, left, movefocus, l
bind = SUPER, right, movefocus, r
bind = SUPER, up, movefocus, u
bind = SUPER, down, movefocus, d
bind = SUPER, h, movefocus, l
bind = SUPER, l, movefocus, r
bind = SUPER, k, layoutmsg, cycleprev
bind = SUPER, j, layoutmsg, cyclenext
bind = SUPER SHIFT, k, layoutmsg, swapprev
bind = SUPER SHIFT, j, layoutmsg, swapnext
bind = SUPER ALT, h, resizeactive, 15 0
bind = SUPER ALT, l, resizeactive, -15 0
bind = SUPER ALT, k, resizeactive, 0 -15
bind = SUPER ALT, j, resizeactive, 0 15
# Switch workspaces with mainMod + [0-9]
bind = SUPER, 1, workspace, 1
@ -60,3 +99,23 @@ bind = SUPER SHIFT, 0, movetoworkspace, 10
# Mouse binds
bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow
# Media playback
bindle = , XF86AudioRaiseVolume, exec, amixer -q set Master 5%+
bindle = SHIFT, XF86AudioRaiseVolume, exec, amixer -q set Master 2%+
bindle = CTRL , XF86AudioRaiseVolume, exec, amixer -q set Master 15%+
bindle = , XF86AudioLowerVolume, exec, amixer -q set Master 5%-
bindle = SHIFT, XF86AudioLowerVolume, exec, amixer -q set Master 2%-
bindle = CTRL , XF86AudioLowerVolume, exec, amixer -q set Master 15%-
bindl = , XF86AudioMute , exec, amixer set Master toggle
bind = , XF86AudioStop , exec, playerctl stop
bind = , XF86AudioPlay , exec, playerctl play-pause
bind = , XF86AudioPrev , exec, playerctl previous
binde = SHIFT, XF86AudioPrev , exec, playerctl position 1.5-
binde = CTRL , XF86AudioPrev , exec, playerctl position 7.5-
bind = , XF86AudioNext , exec, playerctl next
binde = SHIFT, XF86AudioNext , exec, playerctl position 1.5+
binde = CTRL , XF86AudioNext , exec, playerctl position 7.5+
# Window rules
windowrule = float, mpv

111
.config/hypr/hyprlock.conf Normal file
View File

@ -0,0 +1,111 @@
background {
monitor =
path = screenshot
blur_passes = 2
blur_size = 10
}
background {
monitor =
color = rgba(0, 0, 0, 0.4)
}
image {
# monitor = DP-1
path = $HOME/pictures/pfp.png
size = 220
rounding = -1
border_size = 4
border_color = rgb(184, 187, 38)
position = 0, 150
halign = center
valign = center
}
label {
monitor =
text = $USER
text_align = center
color = rgba(200, 200, 200, 1.0)
font_size = 35
font_family = Noto Sans
rotate = 0
position = 0, 0
halign = center
valign = center
}
label {
monitor =
text = cmd[update:500] date +%H:%M:%S
text_align = center
color = rgba(200, 200, 200, 1.0)
font_size = 20
font_family = Noto Sans
rotate = 0
position = 30, 30
halign = left
valign = bottom
}
label {
monitor =
text = cmd[update:500] num=5; echo $num; num=$num-1
text_align = center
color = rgba(200, 200, 200, 1.0)
font_size = 20
font_family = Noto Sans
rotate = 0
position = 30, -30
halign = left
valign = top
}
label {
monitor =
text = cmd[update:10000] uptime -p
text_align = center
color = rgba(200, 200, 200, 1.0)
font_size = 20
font_family = Noto Sans
rotate = 0
position = -30, 30
halign = right
valign = bottom
}
input-field {
monitor =
size = 240, 50
outline_thickness = 2
dots_size = 0.2
dots_spacing = 0.2
dots_center = false
dots_rounding = -1
outer_color = rgb(184, 187, 38)
inner_color = rgb(40, 40, 40)
font_color = rgb(200, 200, 200)
fade_on_empty = true
fade_timeout = 5000
placeholder_text = <i>password</i>
hide_input = false
rounding = -1
check_color = rgb(204, 136, 34)
fail_color = rgb(204, 34, 34)
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
fail_timeout = 2000
fail_transition = 300
capslock_color = -1
numlock_color = -1
bothlock_color = -1
invert_numlock = false
swap_font_color = false
position = 0, -80
halign = center
valign = center
}

View File

@ -6,6 +6,7 @@ http://sdomi.pl/weblog/atom/
https://feeds.fireside.fm/thelinuxcast/rss
https://www.cyberciti.com/feed/
https://www.cyberciti.com/atom/atom.xml
https://weeklyosm.eu/rss
-----------Comics-------------
https://explosm.net/rss.xml
https://onegianthand.com/rss
@ -15,4 +16,5 @@ https://loadingartist.com/index.xml
https://warandpeas.com/rss
https://www.oglaf.com/feeds/rss/
https://xkcd.com/rss.xml
https://pcweenies.com/rss

View File

@ -2,15 +2,29 @@
{
"layer": "top",
"height": 30,
"modules-left": ["hyprland/workspaces", "custom/lock", "custom/shutdown", "custom/reboot", "custom/temperature", "cpu", "memory"],
"modules-left": ["hyprland/workspaces", "custom/temperature", "cpu", "memory"],
"modules-center": ["custom/time", "hyprland/window"],
"modules-right": ["custom/metar", "battery", "clock"],
"modules-right": ["custom/server-cava", "clock", "tray"],
"hyprland/workspaces": {
"disable-scroll": true,
"show-special": true,
"all-outputs": true,
"move-to-monitor": true,
"wrap-on-scroll": false,
"format": "{icon}{name}",
"format-active": "[{name}]",
"format-icons": {
"urgent": "!",
"active": "*",
"default": ""
}
},
"clock": {
"format": "{:%a, %d %b %Y %H:%M:%S}",
"inverval": 1
"interval": 1
},
"custom/temperature": {
"format": " {}",
"format": "{}",
"exec": "sensors | grep 'Tctl:' | sed -E 's/Tctl:[ ]+//' | sed -E 's/[ ]+//'",
"interval": 1,
},
@ -18,7 +32,7 @@
"format": "{}% "
},
"memory": {
"format": "{}% "
"format": "{}% "
},
"custom/time": {
"exec": "bash $HOME/scripts/time.sh --hex",
@ -36,6 +50,11 @@
"custom/reboot": {
"on-click": "reboot",
"format": "",
}
},
"custom/server-cava": {
"exec": "ssh max@192.168.1.193 bash /home/max/caway.sh",
"format": "{}",
"interval": 1,
},
}
]

61
.config/waybar/scripts/waymedia Executable file
View File

@ -0,0 +1,61 @@
#!/usr/bin/env python3
import os
import json
from os.path import expanduser
import subprocess
import re
config_path = f"{expanduser('~')}/.config/waybar"
if os.path.exists(f"{config_path}/config.jsonc"):
config_path = f"{config_path}/config.jsonc"
else:
config_path = f"{config_path}/config"
def remove_comments(jsonc_str):
json_str = re.sub(r'//.*', '', jsonc_str) # remove single-line comments
json_str = re.sub(r'/\*.*?\*/', '', json_str, flags=re.DOTALL) # remove multi-line comments
return json_str
with open(config_path, "r", encoding="utf-8") as file:
jsonc_content = file.read()
clean_json_str = remove_comments(jsonc_content)
config_json = json.loads(clean_json_str)
module_configs = config_json.get("custom/waymedia", {})
pause_icon = module_configs.get("pause-icon", " ")
play_icon = module_configs.get("play-icon", " ")
divider = module_configs.get("divider", " - ")
format = module_configs.get("format", "{icon}{artist}{divider}{title}")
limit = module_configs.get("limit", 60)
def get_command_result(command) -> str:
return subprocess.run(command, shell=True, capture_output=True, text=True).stdout.strip()
metadata = get_command_result("playerctl metadata")
players = subprocess.run("playerctl --list-all", shell=True, capture_output=True, text=True).stdout.split("\n")
for player in players:
status = get_command_result(f"playerctl status -p {player}")
if status != "Stopped" and status != "":
icon = play_icon if status == "Paused" else pause_icon
artist = get_command_result("playerctl metadata --format '{{artist}}'")
title = get_command_result("playerctl metadata --format '{{title}}'")
if len(artist) == 0:
divider = ""
text = format.replace("{icon}", icon).replace("{title}", title).replace("{divider}", divider).replace("{artist}", artist).strip().replace("&", "&amp;").replace("{}", "")
if len(text) > limit:
text = f"{text[:limit - 3]}..."
print(text, flush=True)
exit(0)
print("", flush=True)
exit(0)

View File

@ -0,0 +1,58 @@
#!/usr/bin/env python3
import os
import json
from os.path import expanduser
import subprocess
import re
config_path = f"{expanduser("~")}/.config/waybar"
if os.path.exists(f"{config_path}/config.jsonc"):
config_path = f"{config_path}/config.jsonc"
else:
config_path = f"{config_path}/config"
def remove_comments(jsonc_str):
json_str = re.sub(r'//.*', '', jsonc_str) # remove single-line comments
json_str = re.sub(r'/\*.*?\*/', '', json_str, flags=re.DOTALL) # remove multi-line comments
return json_str
with open(config_path, "r", encoding="utf-8") as file:
jsonc_content = file.read()
clean_json_str = remove_comments(jsonc_content)
config_json = json.loads(clean_json_str)
module_configs = config_json.get("custom/waymedia-buttons", {})
play_icon = module_configs.get("play-icon") if "play-icon" in module_configs else "  "
pause_icon = module_configs.get("pause-icon") if "pause-icon" in module_configs else "  "
skip_icon = module_configs.get("skip-icon") if "skip-icon" in module_configs else " 󰒭 "
previous_icon = module_configs.get("previous-icon") if "previous-icon" in module_configs else " 󰒮 "
def get_command_result(command)-> str:
return subprocess.run(command, shell=True, capture_output=True, text=True).stdout.strip()
metadata = get_command_result("playerctl metadata")
players = subprocess.run("playerctl --list-all", shell=True, capture_output=True, text=True).stdout.split("\n")
for player in players:
status = get_command_result(f"playerctl status -p {player}")
if status != "Stopped" and status != "":
icon = play_icon if status == "Paused" else pause_icon
artist = get_command_result("playerctl metadata --format '{{artist}}'")
title = get_command_result("playerctl metadata --format '{{title}}'")
if len(artist) == 0:
divider = ""
print(f"{previous_icon} {icon} {skip_icon}", flush=True)
exit(0)
print("", flush=True)
exit(0)

View File

@ -2,7 +2,7 @@ window#waybar.screenBorder {
border: 2px solid #b8bb26;
background-color: transparent;
box-shadow: 0px 0px 0px 60px black, 0px 0px 0px 0.5px #ebdbb2;
border-radius: 0px;
border-radius: 10px;
margin: 20px;
}
window#waybar.top,
@ -14,7 +14,6 @@ window#waybar.left {
#workspaces button {
padding: 0px;
color: #ebdbb2;
background: #282828;
}
#workspaces button:hover {
color: #b8bb26;
@ -26,60 +25,31 @@ window#waybar.left {
color: #282828;
background: #ebdbb2;
}
#workspaces {
border: 2px solid #b8bb26;
border-radius: 0;
box-shadow: 12px 12px 0px 2px #000000;
padding: 0px;
margin: 6px;
padding: 0px 5px 0px 5px;
background: #282828;
}
#custom-caway {
color: #ebdbb2;
background: #282828;
border: 2px solid #b8bb26;
border-radius: 0;
box-shadow: 12px 12px 0px 2px #000000;
margin: 6px;
}
#workspaces,
#custom-clock,
#clock,
#custom-time,
#network,
#custom-weather,
#custom-browser,
#custom-terminal,
#custom-anki,
#custom-keepassxc,
#custom-gimp,
#custom-writer,
#custom-luanti,
#custom-nixpkgs,
#custom-email,
#custom-irc,
#disk,
#memory,
#cpu,
#custom-website,
#pulseaudio,
#custom-metar,
#custom-uptime,
#custom-temperature,
#custom-fuzzy-time,
#custom-cmus-artist,
#custom-cmus-song,
#custom-playerctl,
#custom-cava-waybar-local,
#custom-lock,
#custom-shutdown,
#custom-reboot,
#window {
#window,
#custom-temperature,
#tray,
#custom-server-cava {
color: #ebdbb2;
background: #282828;
border: 2px solid #b8bb26;
border-radius: 0;
box-shadow: 12px 12px 0px 2px #000000;
padding: 3px;
border-radius: 15;
/*box-shadow: 12px 12px 0px 2px #282828;*/
padding-left: 3px;
padding-right: 3px;
margin: 6px;
}

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.themes

View File

@ -13,8 +13,8 @@ chatnets = {
type = "IRC";
nick = "deadvey";
alternate_nick = "deadlydave";
}
}
};
};
channels = (
{ name = "#d_general"; chatnet = "tuxcord"; autojoin = "yes"; },
{ name = "#d_off-topic"; chatnet = "tuxcord"; autojoin = "yes"; },
@ -24,5 +24,12 @@ channels = (
{ name = "#d_memes"; chatnet = "tuxcord"; autojoin = "yes"; },
{ name = "#d_counting"; chatnet = "tuxcord"; autojoin = "yes"; },
{ name = "#d_computers"; chatnet = "tuxcord"; autojoin = "yes"; },
{ name = "#d_projects"; chatnet = "tuxcord"; autojoin = "yes"; },
{ name = "#d_projects"; chatnet = "tuxcord"; autojoin = "yes"; }
);
settings = {
core = {
real_name = "deadvey";
user_name = "deadvey";
nick = "deadvey";
};
};

2
.irssi/otr/otr.instag Normal file
View File

@ -0,0 +1,2 @@
# WARNING! You shouldn't copy this file to another computer. It is unnecessary and can cause problems.
tuxcord IRC 26040c9c

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 923 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 899 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 801 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 912 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 882 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 897 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1013 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 814 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 879 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,23 +0,0 @@
button_offset=9
button_spacing=0
show_app_icon=false
full_width_title=true
title_shadow_active=false
title_shadow_inactive=false
title_horizontal_offset=3
active_text_color=#f0f7fe
active_text_shadow_color=#222426
inactive_text_color=#999da3
inactive_text_shadow_color=#222426
shadow_delta_height=2
shadow_delta_width=0
shadow_delta_x=0
shadow_delta_y=-5
shadow_opacity=40

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 999 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 869 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Some files were not shown because too many files have changed in this diff Show More