Compare commits

..
8 Commits
7 changed files with 85 additions and 8 deletions
+19 -4
View File
@@ -1,6 +1,9 @@
bindsym $mod+F7 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% #&& $refresh_i3status bindsym $mod+F7 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && ~/.config/i3/scripts/volume.sh
bindsym $mod+F8 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle #&& $refresh_i3status bindsym $mod+F8 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && ~/.config/i3/scripts/volume.sh
bindsym $mod+F9 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% #&& $refresh_i3status bindsym $mod+F9 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && ~/.config/i3/scripts/volume.sh
bindsym $mod+F10 exec --no-startup-id playerctl previous
bindsym $mod+F11 exec --no-startup-id playerctl play-pause
bindsym $mod+F12 exec --no-startup-id playerctl next
bindsym $mod+Return exec kitty bindsym $mod+Return exec kitty
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id "rofi -modi drun,run,window -show drun" bindsym $mod+d exec --no-startup-id "rofi -modi drun,run,window -show drun"
@@ -75,4 +78,16 @@ bindsym $mod+r mode "Resize"
bindsym $mod+v exec --no-startup-id bash -c "rofi -modi 'clipboard:greenclip print' -show clipboard && xclip -selection clipboard -o | ~/.config/i3/scripts/i3-sc-clipboard.sh" bindsym $mod+v exec --no-startup-id bash -c "rofi -modi 'clipboard:greenclip print' -show clipboard && xclip -selection clipboard -o | ~/.config/i3/scripts/i3-sc-clipboard.sh"
bindsym Shift+Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-area.sh bindsym Shift+Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-area.sh
bindsym Ctrl+Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-window.sh bindsym Ctrl+Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-window.sh
bindsym Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-full.shv bindsym Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-full.sh
mode "Lock? [y/n]" {
bindsym y mode "default" exec --no-startup-id ~/.config/i3/scripts/i3-lock.sh
bindsym n mode "default"
bindsym Escape mode "default"
}
bindsym $mod+x mode "Lock? [y/n]"
mode "Suspend? [y/n]" {
bindsym y mode "default" exec --no-startup-id "~/.config/i3/scripts/i3-lock.sh & sleep 1 && systemctl suspend"
bindsym n mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Ctrl+x mode "Suspend? [y/n]"
+1
View File
@@ -4,6 +4,7 @@ exec --no-startup-id nm-applet
exec --no-startup-id picom exec --no-startup-id picom
exec --no-startup-id clipmenud exec --no-startup-id clipmenud
exec --no-startup-id greenclip daemon exec --no-startup-id greenclip daemon
exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer 600 "~/.config/i3/scripts/i3-lock.sh" "" --timer 900 "systemctl suspend" ""
exec_always --no-startup-id bash ~/.config/i3/scripts/i3-lang-layout.sh exec_always --no-startup-id bash ~/.config/i3/scripts/i3-lang-layout.sh
exec_always --no-startup-id killall -q dunst; dunst -config ~/.config/dunst/dunstrc exec_always --no-startup-id killall -q dunst; dunst -config ~/.config/dunst/dunstrc
exec_always --no-startup-id setxkbmap -layout "us,ru" -option "grp:win_space_toggle" exec_always --no-startup-id setxkbmap -layout "us,ru" -option "grp:win_space_toggle"
+52
View File
@@ -0,0 +1,52 @@
#!/bin/bash
pgrep -x i3lock > /dev/null && exit
bgcolor='#2d2d2dcc'
ubgcolor='#00afff'
textcolor='#ffffff'
alertcolor='#ff5555'
insidecolor='#2d2d2d88'
keycolor='#6b8e23'
i3lock -n \
--blur 5 \
--indicator \
--clock \
--refresh-rate 60 \
--ind-pos="x+w/2:y+h/2" \
--time-pos="ix:iy-20" \
--date-pos="ix:iy+20" \
--radius=100 \
--ring-width=8 \
\
--color=$bgcolor \
--inside-color=$insidecolor \
--ring-color=$ubgcolor \
--separator-color=$bgcolor \
\
--insidever-color=$insidecolor \
--ringver-color=$ubgcolor \
\
--insidewrong-color=$insidecolor \
--ringwrong-color=$alertcolor \
\
--keyhl-color=$keycolor \
--bshl-color=$alertcolor \
\
--time-color=$textcolor \
--date-color=$textcolor \
--layout-color=$textcolor \
--verif-color=$textcolor \
--wrong-color=$textcolor \
--greeter-color=$textcolor \
\
--time-str="%H:%M" \
--date-str="%A, %d %b" \
--keylayout 0 \
\
--time-font="Noto Sans Mono" \
--date-font="Noto Sans Mono" \
--layout-font="Noto Sans Mono" \
--verif-font="Noto Sans Mono" \
--wrong-font="Noto Sans Mono"
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -1)
mute=$(pactl get-sink-mute @DEFAULT_SINK@ | grep -Po '(?<=Mute: )(yes|no)')
if [ "$mute" = "yes" ]; then
notify-send -a "System" -r 9993 -i audio-volume-muted "Muted" --urgency=LOW -t 1000
else
notify-send -a "System" -r 9993 -h int:value:"$volume" -i audio-volume-high "Volume: ${volume}%" --urgency=LOW -t 1000
fi
-1
View File
@@ -6,7 +6,6 @@ detect-client-opacity = true;
use-ewmh-active-win = true; use-ewmh-active-win = true;
unredir-if-possible = false; unredir-if-possible = false;
detect-transient = true; detect-transient = true;
detect-client-leader = true;
use-damage = false; use-damage = false;
window-shader-fg = "default"; window-shader-fg = "default";
transparent-clipping = false; transparent-clipping = false;
+2 -2
View File
@@ -7,11 +7,11 @@ polybar-msg cmd quit
# killall -q polybar # killall -q polybar
# Launch bar1 and bar2 # Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log #echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
MONITOR=HDMI-0 polybar hdmi 2>&1 | tee -a /tmp/polybar1.log & disown MONITOR=HDMI-0 polybar hdmi 2>&1 | tee -a /tmp/polybar1.log & disown
MONITOR=DVI-I-1 polybar dvi 2>&1 | tee -a /tmp/polybar2.log & disown MONITOR=DVI-I-1 polybar dvi 2>&1 | tee -a /tmp/polybar2.log & disown
#polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown #polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown
echo "Bars launched..." #echo "Bars launched..."
+1 -1
View File
@@ -104,7 +104,7 @@ date = %H:%M
[module/date] [module/date]
inherit = date-base inherit = date-base
date = %d/%m/%Y date = %A, %d %b
[module/temperature] [module/temperature]
type = internal/temperature type = internal/temperature