Compare commits
4
Commits
a213b10a88
...
4960d27dd6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4960d27dd6 | ||
|
|
7f606a5aa6 | ||
|
|
1075721046 | ||
|
|
23ea8e8d2b |
@@ -105,7 +105,6 @@ git_prompt_info() {
|
||||
|
||||
branch=$(git branch --show-current 2>/dev/null)
|
||||
|
||||
# Не Git-репозиторий
|
||||
if [[ -z "$branch" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
+5
-23
@@ -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,22 +187,16 @@
|
||||
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
@@ -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";
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user