Skip to content

Commit

Permalink
fix(cr0nus): configured new script and keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
umgbhalla committed May 22, 2022
1 parent d57390e commit bfb07af
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 34 deletions.
9 changes: 5 additions & 4 deletions themes/cr0nus/bspwm/.config/bspwm/bspwmrc
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ s playerctld daemon
notify-send "bg apps launched"
# }}}
# {{{ Bspc Configs
c border_width 3
c window_gap 1
c border_width 0
c window_gap 0
c left_padding 0
c right_padding 0
c top_padding 32
c bottom_padding 32
c top_padding 2
c bottom_padding 2
#unixporn mode
# c bottom_padding 10
# c left_padding 60
Expand Down Expand Up @@ -111,6 +111,7 @@ R Yad state='floating'
R Kupfer.py focus=on
# R Polybar manage=on
# }}}

notify-send "bspc rules set"
bash $HOME/.config/polybar/launch.sh &
notify-send "Launching Poly bar"
Expand Down
4 changes: 2 additions & 2 deletions themes/cr0nus/picom/.config/picom/picom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;

corner-radius = 10;
corner-radius = 8;
detect-rounded-corners = true;
round-borders = 4;
round-borders = 6;


# detect-client-opacity = true;
Expand Down
6 changes: 3 additions & 3 deletions themes/cr0nus/polybar/.config/polybar/bars.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[bar/main]
# Tell the Window Manager not to configure the window.
# Use this to detach the bar if your WM is locking its size/position.
override-redirect = false
override-redirect = true
# Put the bar at the bottom of the screen
bottom = true
# Prefer fixed center position for the `modules-center` block
Expand Down Expand Up @@ -142,7 +142,7 @@ height = 30
bottom = true

# REQUIRED for us to be able to move the window
override-redirect = false
override-redirect = true

offset-x = 20
modules-right = placeholder
Expand Down Expand Up @@ -195,7 +195,7 @@ enable-ipc = true

[bar/sub]
bottom = false
override-redirect = false
override-redirect = true
fixed-center = true
width = 1920
height = 30
Expand Down
38 changes: 18 additions & 20 deletions themes/cr0nus/polybar/.config/polybar/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


# Terminate already running bar instances
# ps -ef | grep hideIt | grep -v grep | awk '{print $2}' | xargs kill
ps -ef | grep hideIt | grep -v grep | awk '{print $2}' | xargs kill
echo "########################################################################"
# notify-send "hideIt killed"
notify-send "hideIt killed"
killall -q polybar
echo "########################################################################"
notify-send "polybars killed"
Expand All @@ -27,40 +27,38 @@ notify-send "systray launched"


xdo raise -a "Polybar tray window"
# xdo raise -a "polybar-sub_eDP"
# xdo raise -a "polybar-main_eDP-1"
xdo raise -a "polybar-sub_eDP"
xdo raise -a "polybar-main_eDP-1"


sleep 3
# # hiding some bars
# hideIt.sh --name '^polybar-sub_eDP-1$' -w --peek 4 -d top -i 1 --hover &
hideIt.sh --name '^polybar-sub_eDP-1$' -w --peek 4 -d top -i 1 --hover &
echo "########################################################################"
# notify-send "hiding sub bar "
# hideIt.sh --name '^polybar-main_eDP-1$' -w --peek 4 -d bottom -i 1 --hover &
hideIt.sh --name '^polybar-main_eDP-1$' -w --peek 4 -d bottom -i 1 --hover &
# echo "########################################################################"
# echo "hiding main bar "
# hideIt.sh --name '^Polybar tray window$' -w --region 0x1060+55+55 --peek 4 -d bottom -i 0.1 &
# hideIt.sh --name '^Polybar tray window$' -w --peek 4 -d bottom -i 0.1 --hover &
hideIt.sh --name '^Polybar tray window$' -w --region 0x1060+55+55 --peek 4 -d bottom -i 0.1 &
# hideIt.sh --name '^Polybar tray window$' -w --peek 4 -d bottom -i 0.1 --hover &
echo "########################################################################"
# notify-send "hiding systray "




# xdo raise -a "polybar-sub_eDP-1"
# Wait wait until all bars are loaded and hidden

# while ! pgrep -x polybar >/dev/null; do sleep 1; done
# # just making sure
# sleep 20
while ! pgrep -x polybar >/dev/null; do sleep 1; done
# just making sure
sleep 20




# # # Raise all bars
# xdo raise -a "Polybar tray window"
# xdo raise -a "polybar-sub_eDP-1"
# xdo raise -a "polybar-main_eDP-1"
# Raise all bars
xdo raise -a "Polybar tray window"
xdo raise -a "polybar-sub_eDP-1"
xdo raise -a "polybar-main_eDP-1"

echo "########################################################################"
# notify-send " raised all bars"
notify-send " raised all bars"

xdo raise -a "polybar-sub_eDP-1"
13 changes: 8 additions & 5 deletions themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ super + Next

# scratchpad center
super + Return
tdrop -ma -w 1902 -h 1000 -x 4 -y 34 -n 1 kitty
tdrop -ma -w 1920 -h 1080 -x 0 -y 0 -n 1 kitty

# scratchpad left
super + semicolon
tdrop -ma -w 38% -h 1000 -x 1% -y 31 -n 1 kitty
tdrop -ma -w 38% -h 1080 -x 0 -y 0 -n 1 kitty

# scratchpad right
super + apostrophe
tdrop -ma -w 38% -h 1000 -x 1166 -y 31 -n 1 kitty
tdrop -ma -w 62% -h 1080 -x 38% -y 0 -n 1 kitty

# tmux scratchpad top
super + backslash
tdrop -ma -w 1878 -h 40% -x 1% -y 31 -n 1 kitty
tdrop -ma -w 1920 -h 40% -x 0 -y 0 -n 1 kitty

# tmux scratchpad bottom
super + slash
tdrop -ma -w 1878 -h 40% -x 1% -y 608 -n 1 kitty
tdrop -ma -w 1920 -h 40% -x 0 -y 59% -n 1 kitty

# terminal kitty
super + shift + Return
Expand Down Expand Up @@ -363,3 +363,6 @@ XF86AudioPlay
XF86AudioPause
playerctl play-pause &

# touch pad toggle
XF86TouchpadToggle
touchpadtoggle

0 comments on commit bfb07af

Please sign in to comment.