Compare commits
10 commits
53e5c16db3
...
6be8aa0d32
Author | SHA1 | Date | |
---|---|---|---|
6be8aa0d32 | |||
![]() |
3db68c6a5a | ||
![]() |
2f44ef08de | ||
![]() |
b5939134ee | ||
![]() |
b5dceece01 | ||
41c39315b6 | |||
4f621f9874 | |||
![]() |
13a3c317ff | ||
b54da9acda | |||
fc5dd7ee14 |
|
@ -1,10 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
#First we get the capacity
|
||||
charge=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||
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/BAT0/status)
|
||||
bstat=$(cat /sys/class/power_supply/$bat/status)
|
||||
|
||||
#Get the symbol for the capacity
|
||||
if [ "$bstat" = "Charging" ]; then
|
||||
|
@ -13,50 +23,20 @@ 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
|
||||
|
||||
|
||||
|
||||
|
||||
battery="$bat $charge%"
|
||||
|
||||
if [ -d /sys/class/power_supply/BAT1 ]; then
|
||||
|
||||
#First we get the capacity
|
||||
charge=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||
|
||||
#Now get the status
|
||||
bstat=$(cat /sys/class/power_supply/BAT1/status)
|
||||
if [ "$bstat" = "Charging" ]; then
|
||||
cstat=""
|
||||
else
|
||||
cstat=""
|
||||
fi
|
||||
#Get the symbol for the capacity
|
||||
if [ "$charge" -gt 90 ]; then
|
||||
bat="$cstat"
|
||||
elif [ "$charge" -gt 70 ]; then
|
||||
bat="$cstat"
|
||||
elif [ "$charge" -gt 50 ]; then
|
||||
bat="$cstat"
|
||||
elif [ "$charge" -gt 20 ]; then
|
||||
bat="$cstat"
|
||||
else
|
||||
bat=" $cstat"
|
||||
fi
|
||||
|
||||
echo "$bat $charge% $battery"
|
||||
else
|
||||
echo $battery
|
||||
fi
|
||||
|
||||
|
||||
echo "$bat$charge "
|
||||
|
|
|
@ -1 +1 @@
|
|||
echo " $(date '+%b %d (%a) %I:%M%p') "
|
||||
echo "$(/home/aselimov/bin/title_text.sh)"
|
||||
|
|
|
@ -6,10 +6,10 @@ total=$(grep -oP '^MemTotal: *\K[0-9]+' /proc/meminfo)
|
|||
mem=" $(echo "scale=1; 100*($total-$available)/$total"| bc | cut -d '.' -f1 )"
|
||||
|
||||
if [ $mem -gt 80 ]; then
|
||||
mem=" $mem"
|
||||
mem=" $mem %"
|
||||
elif [ $mem -gt 50 ]; then
|
||||
mem="$mem"
|
||||
mem="$mem %"
|
||||
else
|
||||
mem="$mem"
|
||||
mem=" "
|
||||
fi
|
||||
echo "$mem%"
|
||||
echo "$mem"
|
||||
|
|
|
@ -3,12 +3,16 @@
|
|||
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
#if [ "$vol" -gt "70" ]; then
|
||||
# icon=""
|
||||
#elif [ "$vol" -gt "30" ]; then
|
||||
# icon=""
|
||||
#el
|
||||
|
||||
if [ "$vol" -gt "0" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "30" ]; then
|
||||
icon=""
|
||||
else
|
||||
icon=""
|
||||
icon=""
|
||||
fi
|
||||
|
||||
echo "$icon $vol%"
|
||||
echo "$icon "
|
||||
|
|
|
@ -4,5 +4,5 @@ case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
|||
down) echo " ";;
|
||||
up) percentage="$(awk '/^\s*w/ { print int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
||||
ssid=$(iwgetid -r)
|
||||
echo \ $ssid
|
||||
echo " "
|
||||
esac
|
||||
|
|
1842
bin/emojis
Executable file
9
bin/search
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
dmenu="dmenu -l 0 -theme-str 'window {width: 80%;}' -i"
|
||||
query=$(eval "$dmenu")
|
||||
if [ -n "$query" ]; then
|
||||
query=${query//+/%2B}
|
||||
query=${query// /+}
|
||||
zen-browser --new-window "https://search.brave.com/search?q=$query"
|
||||
fi
|
|
@ -1,17 +1,76 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script for changing between light and dark modes
|
||||
mode=$(grep "light_mode = " ~/.wezterm.lua | cut -d "=" -f 2 | tr -d " ")
|
||||
if [ "$mode" = "true" ]; then
|
||||
if [ -f ~/.config/nvim/light_mode ]; then
|
||||
echo "Swapping to dark mode"
|
||||
sed -i -e "s/local light_mode =.*/local light_mode = false/" ~/.wezterm.lua
|
||||
# GTK Theme
|
||||
sed -i -e 's@Net/ThemeName.*@Net/ThemeName "Orchis-Grey-Dark"@' ~/.xsettingsd
|
||||
# Rofi theme
|
||||
sed -i -e "s/light.rasi/dark.rasi/" $HOME/.config/rofi/config.rasi
|
||||
|
||||
# Swap ST colors and reset
|
||||
echo " st*color0:#191919
|
||||
st*color1:#DE6E7C
|
||||
st*color2:#819B69
|
||||
st*color3:#B77E64
|
||||
st*color4:#6099C0
|
||||
st*color5:#B279A7
|
||||
st*color6:#66A5AD
|
||||
st*color7:#BBBBBB
|
||||
st*color8:#3d3839
|
||||
st*color9:#E8838F
|
||||
st*color10:#8BAE68
|
||||
st*color11:#D68C67
|
||||
st*color12:#61ABDA
|
||||
st*color13:#CF86C1
|
||||
st*color14:#65B8C1
|
||||
st*color15:#8e8e8e
|
||||
" > ~/.Xresources
|
||||
xrdb merge ~/.Xresources
|
||||
killall st -s "USR1"
|
||||
|
||||
# Remove neovim colorscheme file
|
||||
rm ~/.config/nvim/light_mode
|
||||
|
||||
# Set the correct command for teams and outlook
|
||||
sed -ie "s@Exec.*@Exec=/usr/lib/chromium/chromium --profile-directory=Default --app-id=ckdeglopgbdgpkmhnmkigpfgebcdbanf --enable-features=WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/text_lightness_threshold/150/background_lightness_threshold/205@" /home/aselimov/.local/share/applications/chrome-ckdeglopgbdgpkmhnmkigpfgebcdbanf-Default.desktop
|
||||
|
||||
sed -ie "s@Exec.*@Exec=/usr/lib/chromium/chromium --profile-directory=Default --app-id=famdcdojlmjefmhdpbpmekhodagkodei %U --enable-features=WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/text_lightness_threshold/150/background_lightness_threshold/205@" /home/aselimov/.local/share/applications/chrome-famdcdojlmjefmhdpbpmekhodagkodei-Default.desktop
|
||||
else
|
||||
echo "Swapping to light mode"
|
||||
sed -i -e "s/local light_mode =.*/local light_mode = true/" ~/.wezterm.lua
|
||||
# GTK Theme
|
||||
sed -i -e 's@Net/ThemeName.*@Net/ThemeName "Orchis-Grey-Light"@' ~/.xsettingsd
|
||||
# Rofi theme
|
||||
sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi
|
||||
|
||||
# # Update ST colors
|
||||
echo " st*color0:#F0EDEC
|
||||
st*color1:#A8334C
|
||||
st*color2:#4F6C31
|
||||
st*color3:#944927
|
||||
st*color4:#286486
|
||||
st*color5:#88507D
|
||||
st*color6:#3B8992
|
||||
st*color7:#2C363C
|
||||
st*color8:#CFC1BA
|
||||
st*color9:#94253E
|
||||
st*color10:#3F5A22
|
||||
st*color11:#803D1C
|
||||
st*color12:#1D5573
|
||||
st*color13:#7B3B70
|
||||
st*color14:#2B747C
|
||||
st*color15:#4F5E68
|
||||
" > ~/.Xresources
|
||||
xrdb merge ~/.Xresources
|
||||
killall st -s "USR1"
|
||||
|
||||
# Set the correct command for teams and outlook
|
||||
sed -ie "s@Exec.*@Exec=/usr/lib/chromium/chromium --profile-directory=Default --app-id=ckdeglopgbdgpkmhnmkigpfgebcdbanf@" /home/aselimov/.local/share/applications/chrome-ckdeglopgbdgpkmhnmkigpfgebcdbanf-Default.desktop
|
||||
|
||||
sed -ie "s@Exec.*@Exec=/usr/lib/chromium/chromium --profile-directory=Default --app-id=famdcdojlmjefmhdpbpmekhodagkodei %U@" /home/aselimov/.local/share/applications/chrome-famdcdojlmjefmhdpbpmekhodagkodei-Default.desktop
|
||||
|
||||
# Add neovim colorscheme file
|
||||
touch ~/.config/nvim/light_mode
|
||||
fi
|
||||
|
||||
killall -HUP xsettingsd
|
||||
|
|
|
@ -68,3 +68,5 @@ case $1 in
|
|||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
kill -44 $(pidof dwmblocks)
|
||||
|
|
|
@ -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:
|
||||
# <b>bold</b>
|
||||
|
@ -69,7 +70,9 @@
|
|||
# The width can be negative. In this case the actual width is the
|
||||
# screen width minus the width defined in within the geometry option.
|
||||
origin="top-right"
|
||||
geometry=350x200-25+25
|
||||
width=300
|
||||
height=250
|
||||
offset=+10x+40
|
||||
|
||||
# Shrink window if it's smaller than the width. Will be ignored if
|
||||
# width is 0.
|
||||
|
@ -152,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
|
||||
|
@ -179,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
|
||||
|
|
|
@ -8,17 +8,36 @@ 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
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
@ -44,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
|
||||
|
@ -85,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 #
|
||||
|
@ -244,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.
|
||||
|
@ -291,13 +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 = "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";
|
||||
}
|
||||
)})
|
||||
|
||||
|
|
|
@ -9,12 +9,14 @@
|
|||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
modi: "drun,run";
|
||||
show-icons: false;
|
||||
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}";
|
||||
}
|
||||
|
@ -34,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);
|
||||
|
@ -54,7 +56,7 @@ window {
|
|||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 400px;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
|
@ -145,7 +147,7 @@ num-rows {
|
|||
text-color: inherit;
|
||||
}
|
||||
case-indicator {
|
||||
enabled: true;
|
||||
enabled: false;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
@ -154,7 +156,7 @@ case-indicator {
|
|||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
lines: 4;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
|
@ -246,7 +248,7 @@ element-text {
|
|||
|
||||
/*****----- Mode Switcher -----*****/
|
||||
mode-switcher{
|
||||
enabled: true;
|
||||
enabled: false;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
|
@ -303,3 +305,5 @@ error-message {
|
|||
background-color: @background-colour;
|
||||
text-color: @foreground-colour;
|
||||
}
|
||||
|
||||
element-icon { size: 5ch ; }
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
88
config/rofi/spotlight.rasi
Normal 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;
|
||||
}
|
|
@ -13,37 +13,43 @@ 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
|
||||
|
||||
alt+s
|
||||
search
|
||||
|
||||
ctrl+shift+s
|
||||
swap_monitor.sh
|
||||
|
||||
ctrl+shift+d
|
||||
dock.sh
|
||||
|
||||
shift+super+i
|
||||
shift+alt+i
|
||||
rofi-connman
|
||||
|
||||
alt+e
|
||||
emojis
|
||||
|
|
69
home/.tmux.conf
Normal file
|
@ -0,0 +1,69 @@
|
|||
#Make nicer tmux motion keys that work with vim as well
|
||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
||||
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||
|
||||
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
||||
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
||||
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
||||
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
||||
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
||||
|
||||
unbind C-b
|
||||
set -g prefix C-p
|
||||
bind C-p send-prefix
|
||||
|
||||
#Sane split commands
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
# reload config file (change file location to your the tmux.conf you want to use)
|
||||
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
|
||||
set -g visual-silence off
|
||||
setw -g monitor-activity off
|
||||
set -g bell-action none
|
||||
|
||||
# clock mode
|
||||
setw -g clock-mode-colour "#BBBBBB"
|
||||
|
||||
# copy mode
|
||||
setw -g mode-style 'fg=black bg=red bold'
|
||||
|
||||
# panes
|
||||
set -g pane-border-style 'fg=red'
|
||||
set -g pane-active-border-style 'fg=yellow'
|
||||
|
||||
# statusbar
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
set -g status-style 'fg=black bold'
|
||||
|
||||
set -g status-left ''
|
||||
set -g status-left-length 10
|
||||
|
||||
set -g status-right-style 'fg=white bold bg=black'
|
||||
set -g status-right '%Y-%m-%d %H:%M '
|
||||
set -g status-right-length 50
|
||||
|
||||
setw -g window-status-current-style 'fg=red bold bg=black'
|
||||
setw -g window-status-current-format ' #I #W #F '
|
||||
|
||||
setw -g window-status-style 'fg=white bg=black'
|
||||
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=white bg=black'
|
|
@ -4,16 +4,18 @@ local wezterm = require("wezterm")
|
|||
-- This will hold the configuration.
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
-- This is where you actually apply your config choices
|
||||
|
||||
-- For example, changing the color scheme:
|
||||
-- Basic Wezterm settings
|
||||
config.window_close_confirmation = "NeverPrompt"
|
||||
config.automatically_reload_config = true
|
||||
config.enable_tab_bar = false
|
||||
config.font = wezterm.font("FiraCode Nerd Font Mono")
|
||||
config.harfbuzz_features = { "calt=0", "clig=0", "liga=0" }
|
||||
config.font_size = 9
|
||||
local light_mode = true
|
||||
-- Color scheme configuration based on whether terminal is set to light mode
|
||||
local light_mode = false
|
||||
local home = os.getenv("HOME")
|
||||
--if light_mode then
|
||||
config.colors = {
|
||||
if light_mode then
|
||||
config.colors = {
|
||||
-- The default text color
|
||||
foreground = "#4F5e68",
|
||||
-- The default background color
|
||||
|
@ -61,63 +63,63 @@ config.colors = {
|
|||
"#2B747C",
|
||||
"#4F5E68",
|
||||
},
|
||||
}
|
||||
config.window_background_opacity = 0.95
|
||||
--local f = io.open(home .. "/.config/nvim/light_mode", "w")
|
||||
--assert(f)
|
||||
--f:close()
|
||||
--else
|
||||
-- config.colors = {
|
||||
-- -- The default text color
|
||||
-- foreground = "#8e8e8e",
|
||||
-- -- The default background color
|
||||
-- background = "#191919",
|
||||
--
|
||||
-- -- Overrides the cell background color when the current cell is occupied by the
|
||||
-- -- cursor and the cursor style is set to Block
|
||||
-- cursor_bg = "#BBBBBB",
|
||||
-- -- Overrides the text color when the current cell is occupied by the cursor
|
||||
-- cursor_fg = "#191919",
|
||||
-- -- Specifies the border color of the cursor when the cursor style is set to Block,
|
||||
-- -- or the color of the vertical or horizontal bar when the cursor style is set to
|
||||
-- -- Bar or Underline.
|
||||
-- cursor_border = "#BBBBBB",
|
||||
--
|
||||
-- -- the foreground color of selected text
|
||||
-- selection_fg = "#191919",
|
||||
-- -- the background color of selected text
|
||||
-- selection_bg = "#BBBBBB",
|
||||
--
|
||||
-- -- The color of the scrollbar "thumb"; the portion that represents the current viewport
|
||||
-- scrollbar_thumb = "#222222",
|
||||
--
|
||||
-- -- The color of the split lines between panes
|
||||
-- split = "#444444",
|
||||
--
|
||||
-- ansi = {
|
||||
-- "#191919",
|
||||
-- "#DE6E7C",
|
||||
-- "#819B69",
|
||||
-- "#B77E64",
|
||||
-- "#6099C0",
|
||||
-- "#B279A7",
|
||||
-- "#66A5AD",
|
||||
-- "#BBBBBB",
|
||||
-- },
|
||||
-- brights = {
|
||||
-- "#3d3839",
|
||||
-- "#E8838F",
|
||||
-- "#8BAE68",
|
||||
-- "#D68C67",
|
||||
-- "#61ABDA",
|
||||
-- "#CF86C1",
|
||||
-- "#65B8C1",
|
||||
-- "#8e8e8e",
|
||||
-- },
|
||||
-- }
|
||||
-- config.window_background_opacity = 0.85
|
||||
-- os.remove(home .. "/.config/nvim/light_mode")
|
||||
--end
|
||||
}
|
||||
config.window_background_opacity = 0.95
|
||||
local f = io.open(home .. "/.config/nvim/light_mode", "w")
|
||||
assert(f)
|
||||
f:close()
|
||||
else
|
||||
config.colors = {
|
||||
-- The default text color
|
||||
foreground = "#8e8e8e",
|
||||
-- The default background color
|
||||
background = "#191919",
|
||||
|
||||
-- Overrides the cell background color when the current cell is occupied by the
|
||||
-- cursor and the cursor style is set to Block
|
||||
cursor_bg = "#BBBBBB",
|
||||
-- Overrides the text color when the current cell is occupied by the cursor
|
||||
cursor_fg = "#191919",
|
||||
-- Specifies the border color of the cursor when the cursor style is set to Block,
|
||||
-- or the color of the vertical or horizontal bar when the cursor style is set to
|
||||
-- Bar or Underline.
|
||||
cursor_border = "#BBBBBB",
|
||||
|
||||
-- the foreground color of selected text
|
||||
selection_fg = "#191919",
|
||||
-- the background color of selected text
|
||||
selection_bg = "#BBBBBB",
|
||||
|
||||
-- The color of the scrollbar "thumb"; the portion that represents the current viewport
|
||||
scrollbar_thumb = "#222222",
|
||||
|
||||
-- The color of the split lines between panes
|
||||
split = "#444444",
|
||||
|
||||
ansi = {
|
||||
"#191919",
|
||||
"#DE6E7C",
|
||||
"#819B69",
|
||||
"#B77E64",
|
||||
"#6099C0",
|
||||
"#B279A7",
|
||||
"#66A5AD",
|
||||
"#BBBBBB",
|
||||
},
|
||||
brights = {
|
||||
"#3d3839",
|
||||
"#E8838F",
|
||||
"#8BAE68",
|
||||
"#D68C67",
|
||||
"#61ABDA",
|
||||
"#CF86C1",
|
||||
"#65B8C1",
|
||||
"#8e8e8e",
|
||||
},
|
||||
}
|
||||
config.window_background_opacity = 0.85
|
||||
os.remove(home .. "/.config/nvim/light_mode")
|
||||
end
|
||||
|
||||
config.keys = {
|
||||
{ key = "j", mods = "CTRL|SHIFT", action = wezterm.action.DecreaseFontSize },
|
||||
|
|
7
home/.xinitrc
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
# xinput set-prop 13 291 0, 0, 1!/bin/sh
|
||||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
|
||||
|
@ -36,7 +36,7 @@ fi
|
|||
|
||||
export PATH="$PATH:/home/aselimov/bin:/home/aselimov/.local/bin:/home/aselimov/scripts"
|
||||
xinput set-prop "DualPoint Stick" "libinput Accel Speed" 0.8
|
||||
export BROWSER=/usr/bin/firefox
|
||||
export BROWSER=/home/aselimov/bin/zen-browser
|
||||
export EDITOR=/usr/bin/nvim
|
||||
export XDG_RUNTIME_DIR=/tmp/aselimov
|
||||
|
||||
|
@ -51,10 +51,11 @@ xrandr | grep "2560x1440" && dock.sh || mobile.sh
|
|||
xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" 1.0
|
||||
xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Profile Enabled" 0 1
|
||||
|
||||
exec bato &
|
||||
exec sync_mail.sh &
|
||||
exec xsettingsd &
|
||||
exec sxhkd &
|
||||
exec mpd &
|
||||
exec mpdnotif.sh &
|
||||
exec picom -b &
|
||||
exec wallpaper_randomizer.sh &
|
||||
exec dwmblocks &
|
||||
|
|
24
home/.zshrc
|
@ -12,7 +12,7 @@ zstyle :compinstall filename '/home/aselimov/.zshrc'
|
|||
export LS_COLORS='di=1;37:ln=35:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43'
|
||||
alias ls="ls --classify --group-directories-first --color"
|
||||
|
||||
~/bin/daily_scripture.sh
|
||||
#~/bin/daily_scripture.sh
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
|
@ -31,7 +31,7 @@ function addbin(){
|
|||
}
|
||||
eval "$(starship init zsh)"
|
||||
zstyle -e ':completion:*:hosts' hosts 'reply=(
|
||||
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
|
||||
${=${${(f)"$(cat {/etc/ssh_,~/ar.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
|
||||
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
|
||||
)'
|
||||
|
||||
|
@ -42,17 +42,23 @@ source "/home/aselimov/.config/zsh/zsh-history-substring-search/zsh-history-subs
|
|||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
export XKB_DEFAULT_OPTIONS="caps:escape"
|
||||
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
||||
|
||||
|
||||
|
||||
function panbeamer (){
|
||||
pandoc --pdf-engine=xelatex -o "${1/md/pdf}" -t beamer "$1"
|
||||
}
|
||||
|
||||
export panbeamer
|
||||
XDEB_PKGROOT=${HOME}/.config/xdeb
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
# Add cuda to path
|
||||
export PATH="$PATH:/usr/local/cuda-12.8/bin"
|
||||
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)"
|
||||
|
|
1
wallpapers/current_rotation/fuji.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/fuji.jpg
|
1
wallpapers/current_rotation/sequoia.png
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/sequoia.png
|
|
@ -1 +0,0 @@
|
|||
/home/aselimov/media/wallpapers/misc/thinkpad.png
|
|
@ -1 +0,0 @@
|
|||
/home/aselimov/media/wallpapers/linux/void-linux-minimal.png
|
|
@ -1 +0,0 @@
|
|||
/home/aselimov/media/wallpapers/minimalist/zen-maze.png
|
BIN
wallpapers/minimalist/17363861542624331954418290647078.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
wallpapers/minimalist/_
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
wallpapers/minimalist/wallhaven-3ld95v.jpg
Normal file
After Width: | Height: | Size: 2.3 MiB |
BIN
wallpapers/real-pics/daniel-leone-v7daTKlZzaw.jpg
Normal file
After Width: | Height: | Size: 1,008 KiB |
Before Width: | Height: | Size: 7.1 MiB |
Before Width: | Height: | Size: 433 KiB |
Before Width: | Height: | Size: 363 KiB |
BIN
wallpapers/real-pics/sequoia.png
Normal file
After Width: | Height: | Size: 10 MiB |