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 +++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100755 herbstluftwm/launch (limited to 'herbstluftwm') 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 -- cgit v1.2.3