From 6be8aa0d32bd09d0276fc8a1862f161fd68bf544 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 14 Jul 2025 10:34:18 -0400 Subject: [PATCH] Lots of updates to SelimovDE - Swap from Super to alt as my main mod key - Update some bar scripts - Update picom settings (for use with Openbox) - Update some dunst settings - Update rofi settings --- bin/bar_bat.sh | 21 ++- bin/bar_date.sh | 2 +- bin/swap_mode.sh | 2 +- config/dunst/dunstrc | 130 ++-------------- config/picom/picom.conf | 142 +++++++++++++++--- config/rofi/aditya_style.rasi | 25 +-- config/rofi/light.rasi | 8 +- config/rofi/spotlight.rasi | 88 +++++++++++ config/sxhkd/sxhkdrc | 22 +-- home/.tmux.conf | 20 +-- home/.xinitrc | 2 +- home/.zshrc | 6 + .../daniel-leone-v7daTKlZzaw.jpg | 1 - 13 files changed, 286 insertions(+), 183 deletions(-) create mode 100644 config/rofi/spotlight.rasi delete mode 120000 wallpapers/current_rotation/daniel-leone-v7daTKlZzaw.jpg diff --git a/bin/bar_bat.sh b/bin/bar_bat.sh index d81485b..4546e23 100755 --- a/bin/bar_bat.sh +++ b/bin/bar_bat.sh @@ -1,9 +1,18 @@ #!/bin/bash #First we get the capacity -bat=$1 +if [ -z "$1" ]; then + bat="BAT0" +else + bat=$1 +fi charge=$(cat /sys/class/power_supply/$bat/capacity) +# Exit early +if [ -z $charge ]; then + echo " $cstat󱉞" +fi + #Now get the status bstat=$(cat /sys/class/power_supply/$bat/status) @@ -14,19 +23,19 @@ else cstat="" fi if [ "$charge" -gt 90 ]; then - bat="$cstat" + bat="$cstat󰁹" charge="" elif [ "$charge" -gt 70 ]; then - bat="$cstat" + bat="$cstat󰂀" charge="" elif [ "$charge" -gt 50 ]; then - bat="$cstat" + bat="$cstat󰁾" charge="" elif [ "$charge" -gt 20 ]; then - bat="$cstat" + bat="$cstat󰁻" charge="" else - bat=" $cstat" + bat=" $cstat󰁺" charge=" $charge%" fi diff --git a/bin/bar_date.sh b/bin/bar_date.sh index ddc745a..30dd1a6 100755 --- a/bin/bar_date.sh +++ b/bin/bar_date.sh @@ -1 +1 @@ -echo " $(date '+%b %d (%a) %I:%M%p') " +echo "$(/home/aselimov/bin/title_text.sh)" diff --git a/bin/swap_mode.sh b/bin/swap_mode.sh index 42fcb35..bf10877 100755 --- a/bin/swap_mode.sh +++ b/bin/swap_mode.sh @@ -43,7 +43,7 @@ else # Rofi theme sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi - # Update ST colors +# # Update ST colors echo " st*color0:#F0EDEC st*color1:#A8334C st*color2:#4F6C31 diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc index ef7787b..93ac8ef 100644 --- a/config/dunst/dunstrc +++ b/config/dunst/dunstrc @@ -1,8 +1,9 @@ [global] frame_width = 0 - frame_color = "#353535" + frame_color = "#000000" - font = FiraCode Nerd Font 11 + font = FiraCode Nerd Font 12 + #font = Iosevka Nerd Font 13 # Allow a small subset of html markup: # bold @@ -71,7 +72,7 @@ origin="top-right" width=300 height=250 - offset=+10x+25 + offset=+10x+40 # Shrink window if it's smaller than the width. Will be ignored if # width is 0. @@ -154,7 +155,8 @@ icon_position = left # Paths to default icons. - icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/ + icon_theme = Papirus + enable_recursive_icon_lookup = true # Limit icons size. max_icon_size=128 @@ -181,125 +183,25 @@ # Context menu. context = ctrl+mod1+c + [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. # Otherwise the "#" and following would be interpreted as a comment. - background = "#191919" - foreground = "#BBBBBB" + background = "#8e8e8e" + foreground = "#3d3839" timeout = 5 [urgency_normal] - background = "#353535" - foreground = "#BBBBBB" + background = "#BBBBBB" + foreground = "#191919" timeout = 5 [urgency_critical] background = "#de6e7c" - foreground = "#BBBBBB" + foreground = "#191919" timeout = 0 - -# 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", "summary", "body", "icon", "category", -# "msg_urgency" and you can override the "timeout", "urgency", "foreground", -# "background", "new_icon" and "format". -# Shell-like globbing will get expanded. -# -# 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. - -#[espeak] -# summary = "*" -# script = dunst_espeak.sh - -#[script-test] -# summary = "*script*" -# script = dunst_test.sh - -#[ignore] -# # This notification will not be displayed -# summary = "foobar" -# format = "" - -#[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 -# -#[Claws Mail] -# appname = claws-mail -# category = email.arrived -# urgency = normal -# background = "#2F899E" -# foreground = "#FFA247" -# -#[mute.sh] -# appname = mute -# category = mute.sound -# script = mute.sh -# -#[JDownloader] -# appname = JDownloader -# category = JD -# background = "#FFA247" -# foreground = "#FFFFFF" -# -#[newsbeuter] -# summary = *Feeds* -# background = "#A8EB41" -# foreground = "#FFFFFF" -# -#[irc] -# appname = weechat -# timeout = 0 -# background = "#0033bb" -# foreground = "#dddddd" -## -#[weechat hl] -# appname = weechat -# category = weechat.HL -# background = "#FF5C47" -# foreground = "#FFFFFF" -## -#[weechat pn] -# appname = weechat -# category = weechat.PM -# background = "#D53B84" -# foreground = "#FFFFFF" -# -#[CMUS] -# appname = CMUS -# category = cmus -# background = "#6C4AB7" -# foreground = "#FFE756" -# -# -# background = "#30AB70" -# foreground = "#F67245" -# -# vim: ft=cfg +[geary_notifications] +appname = "Geary" +default_icon = "geary" +min_icon_size = 48 diff --git a/config/picom/picom.conf b/config/picom/picom.conf index f932c5c..0f70afe 100644 --- a/config/picom/picom.conf +++ b/config/picom/picom.conf @@ -8,23 +8,35 @@ animation-stiffness = 180.0; animation-dampening = 28.0; animation-clamping = true; animation-mass = 1; - animation-for-open-window = "slide-left"; - animation-for-menu-window = "slide-down"; - animation-for-transient-window = "slide-down"; - animation-for-workspace-switch-in = "slide-down"; - animation-for-workspace-switch-out = "slide-up"; - -animations =({ +animations =( +{ triggers = ["open"]; preset = "appear"; scale = 0.5; duration = 0.3 }, +{ + triggers = ["close"]; + preset = "disappear"; + scale = 0.5; + duration = 0.3 + }, { triggers = ["geometry"]; preset = "geometry-change"; duration = 0.2 + }, +{ + triggers = ["show"]; + preset = "slide-in"; + duration = 0.2 + }, + + { + triggers = ["hide"]; + preset = "slide-out"; + duration = 0.2 } ) @@ -51,7 +63,7 @@ shadow = true shadow-radius = 20 # The opacity of shadows. (0.0 - 1.0, defaults to 0.75) -shadow-opacity = 0.55 +shadow-opacity = 0.65 # The left offset for shadows, in pixels. (defaults to -15) shadow-offset-x = -20 @@ -92,7 +104,10 @@ blur-background-fixed = false # blur-kern = "3x3box"; # Exclude conditions for background blur. -# blur-background-exclude = [] +#blur-background-exclude = [ +# "window_type = 'dock'", +# "name = 'plank'", +#] ############################################################################## # GENERAL # @@ -251,7 +266,7 @@ use-damage = true # using *--log-file*, since it can generate a huge stream of logs. # # log-level = "debug" -log-level = "warn"; +log-level = "debug"; # Set the log file. # If *--log-file* is never specified, logs will be written to stderr. @@ -298,17 +313,108 @@ log-level = "warn"; # you can set this to `true`. # rules = ( -{match = "name = 'Dunst'" animations =({ - triggers = ["open", "show"]; - preset = "slide-in"; - direction ="right" - })}, + {match = "class_g ~= 'Rofi'" animations =({ triggers = ["close", "hide"]; preset = "disappear"; })}, -{match = "name = 'slop'"; blur-background =false; animations = ()}, -{match = "class_g = 'dwm'"; corner-radius=0}, +{ match = "name = 'slop'"; blur-background =false; animations = ()}, +{ match = "name = 'plank'"; blur-background =false; shadow = false; corner-radius=0}, +{ match = "class_g = 'Plank'"; blur-background =false; animations = (); shadow = false; corner-radius=0}, +{ match = "class_g = 'dwm'"; corner-radius=0}, +{ match = "class_g = 'Bar'"; corner-radius=0}, +{ match = "class_g = 'Polybar'"; corner-radius=0}, +{ match = "class_g = 'skippy-xd'"; animations =({ + triggers = ["open", "show"]; + preset = "appear"; + scale = 0.5; + duration = 0.1 + }, +{ + triggers = ["close","hide"]; + preset = "disappear"; + scale = 0.5; + duration = 0.1 + }) }, { match = "fullscreen"; corner-radius = 0; }, -) +{ match = "window_type = 'tooltip'"; animations = ({ + triggers = ["open", "show"]; + preset = "appear"; + scale = 1.0; + duration = 0.0; + }, +{ + triggers = ["close","hide"]; + preset = "disappear"; + scale = 1.0; + duration = 0.0; + },{ + triggers = ["geometry"] + preset = "geometry-change" + duration = 0.0 + })}, +{ match = "window_type = 'popup_menu'"; animations = ({ + triggers = ["open", "show"]; + preset = "appear"; + scale = 1.0; + duration = 0.0; + }, +{ + triggers = ["close","hide"]; + + preset = "disappear"; + scale = 1.0; + duration = 0.0; + })}, +{ match = "window_type = 'menu'"; animations = ({ + triggers = ["open", "show"]; + preset = "appear"; + scale = 1.0; + duration = 0.0; + }, +{ + triggers = ["close","hide"]; + + preset = "disappear"; + scale = 1.0; + duration = 0.0; + })}, +{ match = "window_type = 'dropdown_menu'"; animations = ({ + triggers = ["open", "show"]; + preset = "appear"; + scale = 1.0; + duration = 0.0; + }, +{ + triggers = ["close","hide"]; + + preset = "disappear"; + scale = 1.0; + duration = 0.0; + })}, +{ match = "window_type = 'utility'"; animations = ({ + triggers = ["open", "show"]; + preset = "appear"; + scale = 1.0; + duration = 0.0; + }, +{ + triggers = ["close","hide"]; + + preset = "disappear"; + scale = 1.0; + duration = 0.0; + })}, +{ match = "window_type = 'bar'"; corner-radius=0}, +{match = "class_g ~= 'Dunst'"; animations = ({ + triggers = ["open", "show"]; + preset = "slide-in"; + direction="right"; +}, +{ + triggers = ["close", "hide"]; + preset = "slide-out"; + direction="right"; +} +)}) diff --git a/config/rofi/aditya_style.rasi b/config/rofi/aditya_style.rasi index c958e99..4fea8ce 100644 --- a/config/rofi/aditya_style.rasi +++ b/config/rofi/aditya_style.rasi @@ -9,13 +9,14 @@ /*****----- Configuration -----*****/ configuration { - modi: "drun,run"; - show-icons: false; - font: "CaskaydiaMono Nerd Font 12"; + modi: "drun"; + show-icons: true; + icon-theme: "Papirus"; + font: "IosevkaTermSlab Nerd Font Propo 14"; display-drun: ""; - display-run: ""; - display-filebrowser: ""; - display-window: ""; + //display-run: ""; + //display-filebrowser: ""; + //display-window: ""; drun-display-format: "{name}"; window-format: "{w} · {c} · {t}"; } @@ -35,7 +36,7 @@ configuration { active-background: var(active); active-foreground: var(background); selected-normal-background: var(selected); - selected-normal-foreground: var(background); + selected-normal-foreground: var(background-alt); selected-urgent-background: var(active); selected-urgent-foreground: var(background); selected-active-background: var(urgent); @@ -55,7 +56,7 @@ window { location: center; anchor: center; fullscreen: false; - width: 400px; + width: 800px; x-offset: 0px; y-offset: 0px; @@ -146,7 +147,7 @@ num-rows { text-color: inherit; } case-indicator { - enabled: true; + enabled: false; background-color: inherit; text-color: inherit; } @@ -155,7 +156,7 @@ case-indicator { listview { enabled: true; columns: 1; - lines: 6; + lines: 4; cycle: true; dynamic: true; scrollbar: false; @@ -247,7 +248,7 @@ element-text { /*****----- Mode Switcher -----*****/ mode-switcher{ - enabled: true; + enabled: false; spacing: 10px; margin: 0px; padding: 0px; @@ -304,3 +305,5 @@ error-message { background-color: @background-colour; text-color: @foreground-colour; } + +element-icon { size: 5ch ; } diff --git a/config/rofi/light.rasi b/config/rofi/light.rasi index 36c65e2..ee72cc5 100644 --- a/config/rofi/light.rasi +++ b/config/rofi/light.rasi @@ -1,8 +1,8 @@ * { background: #BBBBBBFF; - background-alt: #8e8e8eFF; - foreground: #191919FF; - selected: #83A598FF; - active: #B8BB26FF; + background-alt: #BBBBBBFF; + foreground: #3d3839FF; + selected: #3d3839FF; + active: #BBBBBBFF; urgent: #FB4934FF; } diff --git a/config/rofi/spotlight.rasi b/config/rofi/spotlight.rasi new file mode 100644 index 0000000..b2c0c11 --- /dev/null +++ b/config/rofi/spotlight.rasi @@ -0,0 +1,88 @@ +/* + * ROFI color theme + * + * Based on Something Found in the Internet + * + * User: Contributors + * Copyright: *! + */ + +configuration { + font: "JetBrainsMono Nerd Font Medium 10"; + + drun { + display-name: ""; + } + + run { + display-name: ""; + } + + window { + display-name: ""; + } + + timeout { + delay: 10; + action: "kb-cancel"; + } +} + +* { + border: 0; + margin: 0; + padding: 0; + spacing: 0; + + bg: #151515; + bg-alt: #232323; + fg: #FFFFFF; + fg-alt: #424242; + + background-color: @bg; + text-color: @fg; +} + +window { + transparency: "real"; +} + +mainbox { + children: [inputbar, listview]; +} + +inputbar { + background-color: @bg-alt; + children: [prompt, entry]; +} + +entry { + background-color: inherit; + padding: 12px 3px; +} + +prompt { + background-color: inherit; + padding: 12px; +} + +listview { + lines: 8; +} + +element { + children: [element-icon, element-text]; +} + +element-icon { + padding: 10px 10px; +} + +element-text { + padding: 10px 0; + text-color: @fg-alt; +} + +element-text selected { + text-color: @fg; +} diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index 77de478..8c27c1a 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -13,33 +13,33 @@ XF86AudioMute XF86MonBrightness{Up,Down} xbacklight -{inc,dec} 10 -super+ctrl+p +alt+ctrl+p pubs-rofi.sh open -super+ctrl+i +alt+ctrl+i pubs-rofi.sh tag -super+ctrl+d +alt+ctrl+d pubs-rofi.sh url -super+ctrl+t +alt+ctrl+t textbooks.sh -super+ctrl+l +alt+ctrl+l passmenu --type ctrl+shift+v paste_from_primary.sh -super+shift+s +alt+shift+s maim -s --hidecursor | xclip -selection clipboard -t image/png -super+o +alt+o find_open -super+y +alt+y xclip -o | viewurl -super+s +alt+s search ctrl+shift+s @@ -48,8 +48,8 @@ ctrl+shift+s ctrl+shift+d dock.sh -shift+super+i +shift+alt+i rofi-connman -super+e +alt+e emojis diff --git a/home/.tmux.conf b/home/.tmux.conf index e6f35b9..aac6b8b 100644 --- a/home/.tmux.conf +++ b/home/.tmux.conf @@ -24,6 +24,10 @@ bind r source-file ~/.tmux.conf # Vim key bindings set-window-option -g mode-keys vi +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -in -selection primary" +bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -in -selection primary" + # don't do anything when a 'bell' rings set -g visual-activity off set -g visual-bell off @@ -62,18 +66,4 @@ setw -g window-status-format ' #I #[fg=white]#W #F ' setw -g window-status-bell-style 'fg=yellow bg=red bold' # messages -set -g message-style 'fg=yellow bg=red bold' - -# List of plugins -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'tmux-plugins/tmux-resurrect' - -# Other examples: -# set -g @plugin 'github_username/plugin_name' -# set -g @plugin 'github_username/plugin_name#branch' -# set -g @plugin 'git@github.com:user/plugin' -# set -g @plugin 'git@bitbucket.com:user/plugin' - -# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -run '~/.tmux/plugins/tpm/tpm' +set -g message-style 'fg=white bg=black' diff --git a/home/.xinitrc b/home/.xinitrc index f401fcd..f1d9d5e 100755 --- a/home/.xinitrc +++ b/home/.xinitrc @@ -1,4 +1,4 @@ -# xinput set-prop 13 291 0, 0, 1!/bin/sh +#!/bin/sh userresources=$HOME/.Xresources diff --git a/home/.zshrc b/home/.zshrc index bff3f37..73a3060 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -56,3 +56,9 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64" [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env +if [ -z "$TMUX" ]; then + tmux +fi +export PYENV_ROOT="$HOME/.pyenv" +[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init - zsh)" diff --git a/wallpapers/current_rotation/daniel-leone-v7daTKlZzaw.jpg b/wallpapers/current_rotation/daniel-leone-v7daTKlZzaw.jpg deleted file mode 120000 index 1c4a1e3..0000000 --- a/wallpapers/current_rotation/daniel-leone-v7daTKlZzaw.jpg +++ /dev/null @@ -1 +0,0 @@ -/home/aselimov/projects/SelimovDE/wallpapers/real-pics/daniel-leone-v7daTKlZzaw.jpg \ No newline at end of file