This commit is contained in:
Dr. Amr Osman 2019-03-18 12:59:59 +02:00
parent 9c17d049ef
commit 2f54696cef
4 changed files with 22 additions and 18 deletions

View File

@ -1,16 +1,12 @@
# basic configuration
shadow = true; # Enabled client-side shadows on windows.
no-dock-shadow = false; # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true; # Don't draw shadows on DND windows.
clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental).
shadow-radius = 5; # The blur radius for shadows. (default 12)
shadow-offset-x = 3; # The left offset for shadows. (default -15)
shadow-offset-y = 3; # The top offset for shadows. (default -15)
#
shadow-opacity = 0.7; # The translucency for shadows. (default .75)
active-opacity = 1.0;
menu-opacity = 1.0; # The opacity for menus. (default 1.0)
inactive-opacity-override = true;
backend = "glx";
glx-no-stencil = true;
vsync = "opengl-swc"
@ -32,7 +28,8 @@ shadow-exclude = [
"class_g = 'Firefox'",
"class_g = 'Conky'",
"class_g = 'Vlc'",
"class_g = 'tor-browser-en'"
"class_g = 'tor-browser-en'",
"class_g = 'i3bar'"
];
fade-exclude = [
@ -42,12 +39,15 @@ fade-exclude = [
focus-exclude = [
"class_g = 'Firefox'",
"class_g = 'tor-browser-en'"
"class_g = 'tor-browser-en'",
"class_g = 'mpv'",
"class_g = 'mpvfloat*'"
];
opacity-exclude = [
"class_g = 'Firefox'"
"class_g = 'tor-browser-en'"
"class_g = 'mpv'"
"class_g = 'mpvfloat'"
"class_g = 'Firefox*'",
"class_g = 'tor-browser-en*'",
"class_g = 'mpv*'",
"class_g = 'mpvfloat*'",
"class_g = 'ffplay*'"
];

View File

@ -12,6 +12,7 @@
#new_window normal
for_window [class="^.*"] border pixel 3
for_window [class="mpv"] floating enable
for_window [class="^Pavucontrol$"] floating enable
gaps inner 5
gaps outer 5
@ -116,8 +117,9 @@ bindsym $mod+Shift+Return exec --no-startup-id samedir
mode "Leave" {
bindsym l exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id lockr
bindsym s exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
bindsym z exec --no-startup-id prompt "Suspend computer?" "systemctl suspend";mode default
bindsym r exec --no-startup-id prompt "Reboot computer?" "$reboot"
bindsym h exec --no-startup-id prompt "Hibernate computer?" "$hibernate"
bindsym h exec --no-startup-id prompt "Hibernate computer?" "$hibernate";mode default
bindsym e exit
# back to normal: Enter or Escape
bindsym Return mode "default"
@ -295,6 +297,7 @@ for_window [title="mpvfloat"] sticky enable
for_window [title="mpvfloat"] border pixel 0
no_focus [title="mpvfloat"]
# #---Function Buttons---# #
#bindsym $mod+F1 exec --no-startup-id groff -kejpt -mom ~/.readme.mom -Tpdf | zathura -
bindsym $mod+F1 exec --no-startup-id groff -kejpt -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura -

View File

@ -212,15 +212,15 @@ fileviewer *.mp3 mp3info
fileviewer *.flac soxi
" Video
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.rmvb,
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
\*.as[fx]
\ {View using ffplay}
\ ffplay -fs -autoexit %f,
\ {View using mpv}
\ mpv --really-quiet %f disown &,
\ {View using Dragon}
\ dragon %f:p,
\ dragon %f:p &,
\ {View using mplayer}
\ mplayer %f,
\ mplayer %f & ,
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
\*.as[fx]

View File

@ -1,7 +1,8 @@
#!/bin/sh
case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e pulsemixer & ;;
#1) setsid "$TERMINAL" -e pulsemixer & ;;
1) pavucontrol ;;
2) pulsemixer --toggle-mute ;;
4) pulsemixer --change-volume +5 ;;
5) pulsemixer --change-volume -5 ;;