mod+b moves to floating bottom left
This commit is contained in:
parent
55723ebc26
commit
a7d1e5fcce
2 changed files with 18 additions and 11 deletions
|
@ -26,7 +26,6 @@ set $term --no-startup-id st
|
||||||
set $video --no-startup-id bash video.sh
|
set $video --no-startup-id bash video.sh
|
||||||
set $stoprec --no-startup-id killall ffmpeg
|
set $stoprec --no-startup-id killall ffmpeg
|
||||||
|
|
||||||
|
|
||||||
# #---Starting External Scripts---# #
|
# #---Starting External Scripts---# #
|
||||||
#Increase key rate
|
#Increase key rate
|
||||||
exec --no-startup-id xset r rate 300 50
|
exec --no-startup-id xset r rate 300 50
|
||||||
|
@ -42,9 +41,6 @@ exec --no-startup-id compton --xrender-sync-fence
|
||||||
exec --no-startup-id screen.sh v
|
exec --no-startup-id screen.sh v
|
||||||
#Launch Polybar where appropriate:
|
#Launch Polybar where appropriate:
|
||||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||||
#Add wallpaper:
|
|
||||||
exec_always --no-startup-id feh --bg-scale ~/.config/wall.png
|
|
||||||
#exec_always --no-startup-id wal -c -i ~/.config/wall.png
|
|
||||||
#Runs the key remapping scripts
|
#Runs the key remapping scripts
|
||||||
exec --no-startup-id ~/.scripts/remaps
|
exec --no-startup-id ~/.scripts/remaps
|
||||||
#Unclutter makes the mouse invisible after a brief period
|
#Unclutter makes the mouse invisible after a brief period
|
||||||
|
@ -218,19 +214,13 @@ bindsym $mod+Shift+z gaps outer current minus 5
|
||||||
bindsym $mod+x exec --no-startup-id ~/.config/i3/lock.sh
|
bindsym $mod+x exec --no-startup-id ~/.config/i3/lock.sh
|
||||||
bindsym $mod+Shift+x exec $shutdown
|
bindsym $mod+Shift+x exec $shutdown
|
||||||
|
|
||||||
# Bindings to make the webcam float and stick.
|
|
||||||
for_window [title="video0 - mpv"] floating enable
|
|
||||||
for_window [title="video0 - mpv"] sticky enable
|
|
||||||
for_window [title="video0 - mpv"] border pixel 0
|
|
||||||
no_focus [title="video0 - mpv"]
|
|
||||||
|
|
||||||
bindsym $mod+c exec --no-startup-id camtoggle
|
bindsym $mod+c exec --no-startup-id camtoggle
|
||||||
#bindsym $mod+Shift+c
|
#bindsym $mod+Shift+c
|
||||||
|
|
||||||
bindsym $mod+v exec $term -e ncmpcpp -s visualizer
|
bindsym $mod+v exec $term -e ncmpcpp -s visualizer
|
||||||
bindsym $mod+Shift+v exec projectM-pulseaudio
|
bindsym $mod+Shift+v exec projectM-pulseaudio
|
||||||
|
|
||||||
##bindsym $mod+b exec $prev
|
bindsym $mod+b floating toggle; sticky toggle; exec --no-startup-id bottomleft
|
||||||
bindsym $mod+Shift+b exec --no-startup-id blender; workspace $ws6
|
bindsym $mod+Shift+b exec --no-startup-id blender; workspace $ws6
|
||||||
|
|
||||||
bindsym $mod+n exec $term -e newsboat
|
bindsym $mod+n exec $term -e newsboat
|
||||||
|
|
17
.scripts/bottomleft
Executable file
17
.scripts/bottomleft
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script move the selected window to the bottom left of the screen.
|
||||||
|
|
||||||
|
current=$(xdotool getwindowfocus)
|
||||||
|
|
||||||
|
# The window will take up no more than a third of
|
||||||
|
# the width or height of the screen.
|
||||||
|
newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3))
|
||||||
|
newheight=$(($(xdotool getdisplaygeometry | awk '{print $1}') / 3))
|
||||||
|
|
||||||
|
xdotool windowsize $(xdotool getwindowfocus) $newheight $newwidth
|
||||||
|
|
||||||
|
newsize=$(xdotool getwindowgeometry $(xdotool getwindowfocus) | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}')
|
||||||
|
|
||||||
|
height=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize))
|
||||||
|
xdotool windowmove $current 0 $height
|
Loading…
Reference in a new issue