From 93c04f779a1ce6487bbf5610238ff9d66b44ab19 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 6 Nov 2020 10:21:25 +0530 Subject: added a folder for custom scripts --- herbstluftwm/autostart | 12 ++++++++---- herbstluftwm/launch | 15 +++++++++++++++ lemonbar/launch | 13 ------------- lemonbar/mainbar | 2 +- scripts/run_dmenu | 3 +++ 5 files changed, 27 insertions(+), 18 deletions(-) create mode 100755 herbstluftwm/launch delete mode 100755 lemonbar/launch create mode 100755 scripts/run_dmenu diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index ae804687..b1287405 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -19,16 +19,15 @@ hc set focus_follows_mouse 1 # if you have a super key you will be much happier with Mod set to Mod4 # Mod=Mod1 # Use alt as the main modifier Mod=Mod4 # Use the super key as the main modifier -hc keybind Mod1-Return spawn dmenu_run +hc keybind Mod1-Return spawn run_dmenu hc keybind Mod4-Shift-m spawn betterlockscreen -s -hc keybind Mod1-s spawn scrot ~/Media/Screenshots/%Y-%d-%m-%T-screenshot.png +hc keybind Mod1-s spawn scrot /zt/Screenshots/%Y-%d-%m-%T-screenshot.png hc keybind Mod4-Shift-Return spawn pcmanfm # autostart firefox & picom & nitrogen --restore & -polybar herbstluftbar & dunst & TERMINAL=st @@ -159,6 +158,11 @@ hc set frame_padding 1 hc set smart_window_surroundings on hc set smart_frame_surroundings on hc set mouse_recenter_gap 0 +hc set default_frame_layout 3 +hc set hide_covered_windows 1 +hc set gapless_grid 1 +hc set auto_detect_panels 1 + # rules @@ -183,7 +187,7 @@ hc unlock # hc detect_monitors # find the panel -panel=~/.config/herbstluftwm/panel.sh +panel=~/.config/herbstluftwm/launch [ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh for monitor in $(hc list_monitors | cut -d: -f1) ; do # start it on each monitor diff --git a/herbstluftwm/launch b/herbstluftwm/launch new file mode 100755 index 00000000..19488304 --- /dev/null +++ b/herbstluftwm/launch @@ -0,0 +1,15 @@ +#!/bin/bash + +# this script executes the mainbar script +# then pipes it into lemonbar +# and pipes the lemonbar's output +# to the button-actions script +# which handles all the button actions + +cd /home/zt/.config/lemonbar + +./mainbar | lemonbar -g 1366x21 -B '#171520' -p -F '#ffffff' -f "Source Han Sans JP:size=10" -o -3 -f "RobotoMono Nerd Font:style=Regular:size=15" -f -n "mainbar" -o 0 | ./button-actions + +echo "lemonbar launched" + +exit diff --git a/lemonbar/launch b/lemonbar/launch deleted file mode 100755 index 1f521365..00000000 --- a/lemonbar/launch +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# this script executes the mainbar script -# then pipes it into lemonbar -# and pipes the lemonbar's output -# to the button-actions script -# which handles all the button actions - -./mainbar | lemonbar -g 1366x21 -B '#171520' -p -F '#ffffff' -f "Source Han Sans JP:size=10" -o -3 -f "RobotoMono Nerd Font:style=Regular:size=15" -f -n "mainbar" -o 0 | ./button-actions - -echo "lemonbar launched" - -exit diff --git a/lemonbar/mainbar b/lemonbar/mainbar index 6e9873b6..d8d1674e 100755 --- a/lemonbar/mainbar +++ b/lemonbar/mainbar @@ -38,7 +38,7 @@ def getTags(): if tag[0] == ':': tags[i] = ' ' + tag_names[tag[1]] + ' ' # format occupied tags elif tag[0] == '#': - tags[i] = '%{F#6c71c4}%{B#d33682}%{F-} ' + tag_names[tag[1]] + '%{F#d33682} %{B#268bd2}%{F-}' # format active tag + tags[i] = '%{F#6c71c4}%{B#d33682}%{F-} ' + tag_names[tag[1]] + '%{F#d33682} %{B#268bd2}%{F-}' # format active tag else: tags[i] = '%{F#443837} ' + tag_names[tag[1]] + '%{F-} ' # format other tags diff --git a/scripts/run_dmenu b/scripts/run_dmenu new file mode 100755 index 00000000..e46a553b --- /dev/null +++ b/scripts/run_dmenu @@ -0,0 +1,3 @@ +#!/bin/bash + +dmenu_run -b -fn "roboto:size=11" -p "Run: " -nb "#171520" -nf "#dddddd" -sb "#d33682" -sf "#ffffff" -- cgit v1.2.3