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
This commit is contained in:
Alex Selimov 2025-07-14 10:34:18 -04:00
parent 3db68c6a5a
commit 6be8aa0d32
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
13 changed files with 286 additions and 183 deletions

View file

@ -1,9 +1,18 @@
#!/bin/bash #!/bin/bash
#First we get the capacity #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) charge=$(cat /sys/class/power_supply/$bat/capacity)
# Exit early
if [ -z $charge ]; then
echo " $cstat󱉞"
fi
#Now get the status #Now get the status
bstat=$(cat /sys/class/power_supply/$bat/status) bstat=$(cat /sys/class/power_supply/$bat/status)
@ -14,19 +23,19 @@ else
cstat="" cstat=""
fi fi
if [ "$charge" -gt 90 ]; then if [ "$charge" -gt 90 ]; then
bat="$cstat" bat="$cstat󰁹"
charge="" charge=""
elif [ "$charge" -gt 70 ]; then elif [ "$charge" -gt 70 ]; then
bat="$cstat" bat="$cstat󰂀"
charge="" charge=""
elif [ "$charge" -gt 50 ]; then elif [ "$charge" -gt 50 ]; then
bat="$cstat" bat="$cstat󰁾"
charge="" charge=""
elif [ "$charge" -gt 20 ]; then elif [ "$charge" -gt 20 ]; then
bat="$cstat" bat="$cstat󰁻"
charge="" charge=""
else else
bat=" $cstat" bat=" $cstat󰁺"
charge=" $charge%" charge=" $charge%"
fi fi

View file

@ -1 +1 @@
echo "$(date '+%b %d (%a) %I:%M%p') " echo "$(/home/aselimov/bin/title_text.sh)"

View file

@ -43,7 +43,7 @@ else
# Rofi theme # Rofi theme
sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi
# Update ST colors # # Update ST colors
echo " st*color0:#F0EDEC echo " st*color0:#F0EDEC
st*color1:#A8334C st*color1:#A8334C
st*color2:#4F6C31 st*color2:#4F6C31

View file

@ -1,8 +1,9 @@
[global] [global]
frame_width = 0 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: # Allow a small subset of html markup:
# <b>bold</b> # <b>bold</b>
@ -71,7 +72,7 @@
origin="top-right" origin="top-right"
width=300 width=300
height=250 height=250
offset=+10x+25 offset=+10x+40
# Shrink window if it's smaller than the width. Will be ignored if # Shrink window if it's smaller than the width. Will be ignored if
# width is 0. # width is 0.
@ -154,7 +155,8 @@
icon_position = left icon_position = left
# Paths to default icons. # 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. # Limit icons size.
max_icon_size=128 max_icon_size=128
@ -181,125 +183,25 @@
# Context menu. # Context menu.
context = ctrl+mod1+c context = ctrl+mod1+c
[urgency_low] [urgency_low]
# IMPORTANT: colors have to be defined in quotation marks. # IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment. # Otherwise the "#" and following would be interpreted as a comment.
background = "#191919" background = "#8e8e8e"
foreground = "#BBBBBB" foreground = "#3d3839"
timeout = 5 timeout = 5
[urgency_normal] [urgency_normal]
background = "#353535" background = "#BBBBBB"
foreground = "#BBBBBB" foreground = "#191919"
timeout = 5 timeout = 5
[urgency_critical] [urgency_critical]
background = "#de6e7c" background = "#de6e7c"
foreground = "#BBBBBB" foreground = "#191919"
timeout = 0 timeout = 0
[geary_notifications]
# Every section that isn't one of the above is interpreted as a rules to appname = "Geary"
# override settings for certain messages. default_icon = "geary"
# Messages can be matched by "appname", "summary", "body", "icon", "category", min_icon_size = 48
# "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

View file

@ -8,23 +8,35 @@ animation-stiffness = 180.0;
animation-dampening = 28.0; animation-dampening = 28.0;
animation-clamping = true; animation-clamping = true;
animation-mass = 1; 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"; animations =(
animation-for-workspace-switch-out = "slide-up"; {
animations =({
triggers = ["open"]; triggers = ["open"];
preset = "appear"; preset = "appear";
scale = 0.5; scale = 0.5;
duration = 0.3 duration = 0.3
}, },
{
triggers = ["close"];
preset = "disappear";
scale = 0.5;
duration = 0.3
},
{ {
triggers = ["geometry"]; triggers = ["geometry"];
preset = "geometry-change"; preset = "geometry-change";
duration = 0.2 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 shadow-radius = 20
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) # 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) # The left offset for shadows, in pixels. (defaults to -15)
shadow-offset-x = -20 shadow-offset-x = -20
@ -92,7 +104,10 @@ blur-background-fixed = false
# blur-kern = "3x3box"; # blur-kern = "3x3box";
# Exclude conditions for background blur. # Exclude conditions for background blur.
# blur-background-exclude = [] #blur-background-exclude = [
# "window_type = 'dock'",
# "name = 'plank'",
#]
############################################################################## ##############################################################################
# GENERAL # # GENERAL #
@ -251,7 +266,7 @@ use-damage = true
# using *--log-file*, since it can generate a huge stream of logs. # using *--log-file*, since it can generate a huge stream of logs.
# #
# log-level = "debug" # log-level = "debug"
log-level = "warn"; log-level = "debug";
# Set the log file. # Set the log file.
# If *--log-file* is never specified, logs will be written to stderr. # 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`. # you can set this to `true`.
# #
rules = ( rules = (
{match = "name = 'Dunst'" animations =({
triggers = ["open", "show"];
preset = "slide-in";
direction ="right"
})},
{match = "class_g ~= 'Rofi'" animations =({ {match = "class_g ~= 'Rofi'" animations =({
triggers = ["close", "hide"]; triggers = ["close", "hide"];
preset = "disappear"; preset = "disappear";
})}, })},
{match = "name = 'slop'"; blur-background =false; animations = ()}, { match = "name = 'slop'"; blur-background =false; animations = ()},
{match = "class_g = 'dwm'"; corner-radius=0}, { 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 = "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";
}
)})

View file

@ -9,13 +9,14 @@
/*****----- Configuration -----*****/ /*****----- Configuration -----*****/
configuration { configuration {
modi: "drun,run"; modi: "drun";
show-icons: false; show-icons: true;
font: "CaskaydiaMono Nerd Font 12"; icon-theme: "Papirus";
font: "IosevkaTermSlab Nerd Font Propo 14";
display-drun: ""; display-drun: "";
display-run: ""; //display-run: "";
display-filebrowser: ""; //display-filebrowser: "";
display-window: ""; //display-window: "";
drun-display-format: "{name}"; drun-display-format: "{name}";
window-format: "{w} · {c} · {t}"; window-format: "{w} · {c} · {t}";
} }
@ -35,7 +36,7 @@ configuration {
active-background: var(active); active-background: var(active);
active-foreground: var(background); active-foreground: var(background);
selected-normal-background: var(selected); selected-normal-background: var(selected);
selected-normal-foreground: var(background); selected-normal-foreground: var(background-alt);
selected-urgent-background: var(active); selected-urgent-background: var(active);
selected-urgent-foreground: var(background); selected-urgent-foreground: var(background);
selected-active-background: var(urgent); selected-active-background: var(urgent);
@ -55,7 +56,7 @@ window {
location: center; location: center;
anchor: center; anchor: center;
fullscreen: false; fullscreen: false;
width: 400px; width: 800px;
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
@ -146,7 +147,7 @@ num-rows {
text-color: inherit; text-color: inherit;
} }
case-indicator { case-indicator {
enabled: true; enabled: false;
background-color: inherit; background-color: inherit;
text-color: inherit; text-color: inherit;
} }
@ -155,7 +156,7 @@ case-indicator {
listview { listview {
enabled: true; enabled: true;
columns: 1; columns: 1;
lines: 6; lines: 4;
cycle: true; cycle: true;
dynamic: true; dynamic: true;
scrollbar: false; scrollbar: false;
@ -247,7 +248,7 @@ element-text {
/*****----- Mode Switcher -----*****/ /*****----- Mode Switcher -----*****/
mode-switcher{ mode-switcher{
enabled: true; enabled: false;
spacing: 10px; spacing: 10px;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
@ -304,3 +305,5 @@ error-message {
background-color: @background-colour; background-color: @background-colour;
text-color: @foreground-colour; text-color: @foreground-colour;
} }
element-icon { size: 5ch ; }

View file

@ -1,8 +1,8 @@
* { * {
background: #BBBBBBFF; background: #BBBBBBFF;
background-alt: #8e8e8eFF; background-alt: #BBBBBBFF;
foreground: #191919FF; foreground: #3d3839FF;
selected: #83A598FF; selected: #3d3839FF;
active: #B8BB26FF; active: #BBBBBBFF;
urgent: #FB4934FF; urgent: #FB4934FF;
} }

View file

@ -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;
}

View file

@ -13,33 +13,33 @@ XF86AudioMute
XF86MonBrightness{Up,Down} XF86MonBrightness{Up,Down}
xbacklight -{inc,dec} 10 xbacklight -{inc,dec} 10
super+ctrl+p alt+ctrl+p
pubs-rofi.sh open pubs-rofi.sh open
super+ctrl+i alt+ctrl+i
pubs-rofi.sh tag pubs-rofi.sh tag
super+ctrl+d alt+ctrl+d
pubs-rofi.sh url pubs-rofi.sh url
super+ctrl+t alt+ctrl+t
textbooks.sh textbooks.sh
super+ctrl+l alt+ctrl+l
passmenu --type passmenu --type
ctrl+shift+v ctrl+shift+v
paste_from_primary.sh paste_from_primary.sh
super+shift+s alt+shift+s
maim -s --hidecursor | xclip -selection clipboard -t image/png maim -s --hidecursor | xclip -selection clipboard -t image/png
super+o alt+o
find_open find_open
super+y alt+y
xclip -o | viewurl xclip -o | viewurl
super+s alt+s
search search
ctrl+shift+s ctrl+shift+s
@ -48,8 +48,8 @@ ctrl+shift+s
ctrl+shift+d ctrl+shift+d
dock.sh dock.sh
shift+super+i shift+alt+i
rofi-connman rofi-connman
super+e alt+e
emojis emojis

View file

@ -24,6 +24,10 @@ bind r source-file ~/.tmux.conf
# Vim key bindings # Vim key bindings
set-window-option -g mode-keys vi 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 # don't do anything when a 'bell' rings
set -g visual-activity off set -g visual-activity off
set -g visual-bell 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' setw -g window-status-bell-style 'fg=yellow bg=red bold'
# messages # messages
set -g message-style 'fg=yellow bg=red bold' set -g message-style 'fg=white bg=black'
# 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'

View file

@ -1,4 +1,4 @@
# xinput set-prop 13 291 0, 0, 1!/bin/sh #!/bin/sh
userresources=$HOME/.Xresources userresources=$HOME/.Xresources

View file

@ -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 [ -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)"

View file

@ -1 +0,0 @@
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/daniel-leone-v7daTKlZzaw.jpg