aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-11-06 10:21:25 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-11-06 10:21:25 +0530
commit93c04f779a1ce6487bbf5610238ff9d66b44ab19 (patch)
tree967b4c10402d31851213129705a67054510ddf88
parentd26cef6d9ac6b4882753c9385ec08202bb3e358a (diff)
added a folder for custom scripts
-rwxr-xr-xherbstluftwm/autostart12
-rwxr-xr-xherbstluftwm/launch (renamed from lemonbar/launch)2
-rwxr-xr-xlemonbar/mainbar2
-rwxr-xr-xscripts/run_dmenu3
4 files changed, 14 insertions, 5 deletions
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/lemonbar/launch b/herbstluftwm/launch
index 1f521365..19488304 100755
--- a/lemonbar/launch
+++ b/herbstluftwm/launch
@@ -6,6 +6,8 @@
# 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"
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"