From a37808d5a275fab32d7a95cf954eda7b7132b866 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Tue, 20 Sep 2022 23:15:44 +0200 Subject: [PATCH] mb-places hidden files --- usr/bin/jgtint2-pipe | 25 ++++++++++++------------- usr/bin/mb-places | 4 ++-- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/usr/bin/jgtint2-pipe b/usr/bin/jgtint2-pipe index f226291..998672c 100755 --- a/usr/bin/jgtint2-pipe +++ b/usr/bin/jgtint2-pipe @@ -1,6 +1,5 @@ #!/bin/bash -#TODO Reset to defaults TINT2PATH="$HOME/.config/tint2" TINT2RC="$TINT2PATH/tint2rc" @@ -220,21 +219,21 @@ qactions () { out2+=("^tag(ppos$i)") out2+=("^sep($POSITION)") out2+=("^sep($HORIZONTAL)") - out2+=("$TOP,t2ctl position tch ${TINT};$me") - out2+=("$BOTTOM,t2ctl position bch ${TINT};$me") + out2+=(" $TOP,t2ctl position tch ${TINT};$me") + out2+=(" $BOTTOM,t2ctl position bch ${TINT};$me") out2+=("^sep()") - out2+=("$TOPLEFT,t2ctl position tlh ${TINT};$me") - out2+=("$TOPRIGHT,t2ctl position trh ${TINT};$me") - out2+=("$BOTTOMLEFT,t2ctl position blh ${TINT};$me") - out2+=("$BOTTOMRIGHT,t2ctl position brh ${TINT};$me") + out2+=(" $TOPLEFT,t2ctl position tlh ${TINT};$me") + out2+=(" $TOPRIGHT,t2ctl position trh ${TINT};$me") + out2+=(" $BOTTOMLEFT,t2ctl position blh ${TINT};$me") + out2+=(" $BOTTOMRIGHT,t2ctl position brh ${TINT};$me") out2+=("^sep($VERTICAL)") - out2+=("$LEFT,t2ctl position clv ${TINT};$me") - out2+=("$RIGHT,t2ctl position crv ${TINT};$me") + out2+=(" $LEFT,t2ctl position clv ${TINT};$me") + out2+=(" $RIGHT,t2ctl position crv ${TINT};$me") out2+=("^sep()") - out2+=("$TOPLEFT,t2ctl position tlv ${TINT};$me") - out2+=("$TOPRIGHT,t2ctl position trv ${TINT};$me") - out2+=("$BOTTOMLEFT,t2ctl position blv ${TINT};$me") - out2+=("$BOTTOMRIGHT,t2ctl position brv ${TINT};$me") + out2+=(" $TOPLEFT,t2ctl position tlv ${TINT};$me") + out2+=(" $TOPRIGHT,t2ctl position trv ${TINT};$me") + out2+=(" $BOTTOMLEFT,t2ctl position blv ${TINT};$me") + out2+=(" $BOTTOMRIGHT,t2ctl position brv ${TINT};$me") out2+=("^tag(pwidth$i)") out2+=("^sep($SIZE)") out2+=("100%,t2ctl width 100% ${TINT};$me") diff --git a/usr/bin/mb-places b/usr/bin/mb-places index 4f5bf2b..f496ae1 100755 --- a/usr/bin/mb-places +++ b/usr/bin/mb-places @@ -9,7 +9,7 @@ case $LANG in LABEL="Miejsca" ROOTDIR="Katalog główny" HOME_DIR="Katalog domowy" - SHOW_HIDDEN="Wyświetlanie ukrytych" + SHOW_HIDDEN="Wyświetlanie ukrytych plików" EDIT="Edytuj" FILETOOLS="Narzędzia plikowe" INST="Instaluj" @@ -52,7 +52,7 @@ fi mapfile -t out < "$PLACES" out+=("^sep()") -#[[ $jgbrowser_show_hidden = false ]] && out+=("$SHOW_HIDDEN,mb-setvar jgbrowser_show_hidden=true") || out+=("$SHOW_HIDDEN,mb-setvar jgbrowser_show_hidden=false") +[[ $jgbrowser_show_hidden = false ]] && out+=("$SHOW_HIDDEN,mb-setvar jgbrowser_show_hidden=true;mb-places -s") || out+=("$SHOW_HIDDEN,mb-setvar jgbrowser_show_hidden=false;mb-places -s") out+=("$EDIT $LABEL,xdg-open $PLACES,geany") out+=("^sep($FILETOOLS)")