Compare commits

..
4 Commits
Author SHA1 Message Date
pyrschtjag 4960d27dd6 fix: change number workspace 2026-08-11 19:40:36 +04:00
pyrschtjag 7f606a5aa6 feat: added powermenu 2026-08-11 19:39:51 +04:00
pyrschtjag 1075721046 fix: delete comments 2026-08-11 19:39:22 +04:00
pyrschtjag 23ea8e8d2b fix: delete comment 2026-08-11 19:39:03 +04:00
5 changed files with 33 additions and 35 deletions
-1
View File
@@ -105,7 +105,6 @@ git_prompt_info() {
branch=$(git branch --show-current 2>/dev/null)
# Не Git-репозиторий
if [[ -z "$branch" ]]; then
return
fi
+4 -22
View File
@@ -155,15 +155,9 @@
panes: [
(
size: "1",
//borders: "ALL",
//border_symbols: Inherited(parent: Rounded, bottom_left: "├", bottom_right: "┤",),
pane: Split(
direction: Horizontal,
panes: [
/*(
size: "1",
pane: Pane(Empty())
),*/
(
size: "100%",
pane: Pane(QueueHeader())
@@ -173,15 +167,9 @@
),
(
size: "100%",
//borders: "LEFT | RIGHT | BOTTOM",
//border_symbols: Rounded,
pane: Split(
direction: Horizontal,
panes: [
/*(
size: "1",
pane: Pane(Empty())
),*/
(
size: "100%",
pane: Pane(Queue)
@@ -199,16 +187,10 @@
panes: [
(
size: "19",
//borders: "", //LEFT | RIGHT | TOP",
//border_symbols: Rounded,
pane: Pane(AlbumArt)
),
(
size: "100%",
//borders: "", //ALL",
//border_symbols: Inherited(parent: Rounded, top_left: "├", top_right: "┤",),
//border_title: [(kind: Text(" Lyrics "))],
//border_title_alignment: Right,
pane: Component("column1"),
),
],
@@ -222,7 +204,7 @@
pane: Split(
size: "100%",
direction: Vertical,
panes: [(pane: Pane(Directories), size: "100%")] //, borders: "ALL", border_symbols: Rounded)],
panes: [(pane: Pane(Directories), size: "100%")],
)
),
(
@@ -230,7 +212,7 @@
pane: Split(
size: "100%",
direction: Vertical,
panes: [(pane: Pane(AlbumArtists), size: "100%")] //, borders: "ALL", border_symbols: Rounded)],
panes: [(pane: Pane(AlbumArtists), size: "100%")],
)
),
(
@@ -238,7 +220,7 @@
pane: Split(
size: "100%",
direction: Vertical,
panes: [(pane: Pane(Playlists), size: "100%")] //, borders: "ALL", border_symbols: Rounded)],
panes: [(pane: Pane(Playlists), size: "100%")],
)
),
(
@@ -246,7 +228,7 @@
pane: Split(
size: "100%",
direction: Vertical,
panes: [(pane: Pane(Search), size: "100%")] //, borders: "ALL", border_symbols: Rounded)],
panes: [(pane: Pane(Search), size: "100%")],
)
),
],
+2 -1
View File
@@ -4,7 +4,7 @@ configuration {
scroll-method: 1;
show-icons: true;
sidebar-mode: true;
modi: "drun,internet:~/.config/rofi/rofi-filter internet,dev:~/.config/rofi/rofi-filter dev,games:~/.config/rofi/rofi-filter games,system:~/.config/rofi/rofi-filter system,media:~/.config/rofi/rofi-filter media,notifications:~/.config/rofi/rofi-filter notifications,clipboard:~/.config/rofi/rofi-filter clipboard";
modi: "drun,internet:~/.config/rofi/rofi-filter internet,dev:~/.config/rofi/rofi-filter dev,games:~/.config/rofi/rofi-filter games,system:~/.config/rofi/rofi-filter system,media:~/.config/rofi/rofi-filter media,notifications:~/.config/rofi/rofi-filter notifications,clipboard:~/.config/rofi/rofi-filter clipboard,powermenu:~/.config/rofi/rofi-filter powermenu";
display-drun: "ALL";
display-internet: "NET";
display-dev: "DEV";
@@ -13,6 +13,7 @@ configuration {
display-media: "MED";
display-notifications: "NTF";
display-clipboard: "CLP";
display-powermenu: "PWR";
kb-remove-to-eol: "";
kb-mode-complete: "";
kb-remove-char-back: "BackSpace,Shift+BackSpace";
+16
View File
@@ -12,6 +12,14 @@ if [[ -n "$selection" ]]; then
elif [[ "$mode" == "notifications" ]]; then
body="${selection#*— }"
printf '%s' "$body" | wl-copy
elif [[ "$mode" == "powermenu" ]]; then
case "$selection" in
"lock") swaylock ;;
"suspend") systemctl suspend ;;
"reboot") systemctl reboot ;;
"shutdown") systemctl poweroff ;;
"logout") loginctl terminate-session "${XDG_SESSION_ID-}" ;;
esac
else
target_app=$(grep -rl "^Name=${selection}\$" /usr/share/applications/*.desktop 2>/dev/null | head -n1)
if [[ -n "$target_app" ]]; then
@@ -72,4 +80,12 @@ case "$mode" in
}
' /usr/share/applications/*.desktop 2>/dev/null
;;
powermenu)
echo -e "\0markup-rows\x1ftrue"
printf '%s\n' "<span foreground=\"#88c0d0\"></span> lock"
printf '%s\n' "<span foreground=\"#5e81ac\">󰤄</span> suspend"
printf '%s\n' "<span foreground=\"#ebcb8b\"></span> reboot"
printf '%s\n' "<span foreground=\"#bf616a\">⏻</span> shutdown"
printf '%s\n' "<span foreground=\"#b48ead\">󰗽</span> logout"
;;
esac
+1 -1
View File
@@ -34,7 +34,7 @@ workspace 6 output HDMI-A-2
workspace 7 output DP-1
workspace 8 output DP-1
workspace 9 output DP-2
workspace 0 output DP-2
workspace 10 output DP-2
workspace 1
output DP-1 bg ~/Pictures/wallhaven-43qlkd.jpg fill
output HDMI-A-2 bg ~/Pictures/wallhaven-478kjo.jpg fill