From e5b053606d0dd24a2159fc298af1892132c0e8da Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 12 Aug 2020 17:23:06 +0530 Subject: added screenrecord --- bin/.local/bin/record | 10 +++++++++ spectrwm/.config/spectrwm/keybindings.conf | 6 ++--- spectrwm/.config/spectrwm/spectrwm.conf | 35 ++++++++++++++++++++---------- 3 files changed, 36 insertions(+), 15 deletions(-) create mode 100755 bin/.local/bin/record diff --git a/bin/.local/bin/record b/bin/.local/bin/record new file mode 100755 index 0000000..f254e20 --- /dev/null +++ b/bin/.local/bin/record @@ -0,0 +1,10 @@ +#!/bin/bash + +ffmpeg -f x11grab \ +-s 1366x768 \ +-an -i :0.0 \ +-c:v libvpx \ +-b:v 5M \ +-crf 10 \ +-quality realtime \ +-y ~/record.mkv diff --git a/spectrwm/.config/spectrwm/keybindings.conf b/spectrwm/.config/spectrwm/keybindings.conf index 7cade6f..eb02639 100644 --- a/spectrwm/.config/spectrwm/keybindings.conf +++ b/spectrwm/.config/spectrwm/keybindings.conf @@ -14,8 +14,9 @@ bind[focus_prev] = MOD+Shift+Tab bind[focus_urgent] = MOD+u bind[height_grow] = MOD+Shift+equal bind[height_shrink] = MOD+Shift+minus -#bind[iconify] = MOD+x -bind[initscr] = MOD+Shift+i +bind[iconify] = MOD+i +bind[uniconify] = MOD+Shift+i +# bind[initscr] = MOD+Shift+i bind[lock] = MOD+Shift+Delete bind[master_add] = MOD+comma bind[master_del] = MOD+period @@ -84,7 +85,6 @@ bind[swap_main] = MOD+Shift+Return bind[swap_next] = MOD+Shift+j bind[swap_prev] = MOD+Shift+k bind[term] = MOD+Return -bind[uniconify] = MOD+Shift+w bind[version] = MOD+Shift+v bind[width_grow] = MOD+equal bind[width_shrink] = MOD+minus diff --git a/spectrwm/.config/spectrwm/spectrwm.conf b/spectrwm/.config/spectrwm/spectrwm.conf index 7c0ff48..204bab1 100644 --- a/spectrwm/.config/spectrwm/spectrwm.conf +++ b/spectrwm/.config/spectrwm/spectrwm.conf @@ -43,13 +43,13 @@ bar_action = ~/.config/spectrwm/statusbar bar_action_expand = 1 bar_justify = left #bar_format = +N:+I +S <+D>+4<%a %b %d %R %Z %Y+8<+4<+V -bar_format = +|L+1<+L +@fg=1;+C+@fg=0; +|R+A +bar_format = +|L +1<+A +|R +@fg=1;+S +C+@fg=0;+1< +L+1< workspace_indicator = listcurrent,listactive,markcurrent,printnames bar_at_bottom = 0 stack_enabled = 0 clock_enabled = 0 clock_format = %a %b %d %R %Z %Y -iconic_enabled = 0 +iconic_enabled = 1 maximize_hide_bar = 0 window_class_enabled = 1 window_instance_enabled = 1 @@ -67,6 +67,15 @@ urgent_enabled = 1 # Launch applications in a workspace of choice # autorun = ws[2]:chromium --profile-directory=Default +autorun = ws[1]:xsetroot -cursor_name left_ptr +autorun = ws[1]:xss-lock -- slock +autorun = ws[1]:xset b off +autorun = ws[1]:xset s 300 +autorun = ws[1]:~/.fehbg +autorun = ws[1]:~/.local/bin/bat_check.sh +autorun = ws[1]:picom +autorun = ws[1]:urxvtd +autorun = ws[1]:dunst # Customize workspace layout at start # layout = ws[1]:4:0:0:0:vertical @@ -76,15 +85,12 @@ urgent_enabled = 1 # layout = ws[5]:0:0:0:0:horizontal_flip # Set workspace name at start -name = ws[1]:term -name = ws[2]:web -name = ws[3]:social -name = ws[4]:music -name = ws[5]:code -name = ws[6]:virt -name = ws[7]:game -name = ws[8]:hack -name = ws[9]:temp +name = ws[1]:1 +name = ws[2]:2 +name = ws[3]:3 +name = ws[4]:4 +name = ws[5]:5 +name = ws[6]:6 # Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2) modkey = Mod4 @@ -111,6 +117,8 @@ program[notes] = urxvtc -e nvim /home/x/.cache/bujo/todo.md program[files] = urxvtc -e ranger program[pass] = passmenu -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected program[menu] = dmenu_run $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected +program[browser] = chromium --profile-directory=Default +# program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected # program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected # To disable validation of the above, free the respective binding(s): @@ -122,13 +130,13 @@ bind[bdown] = XF86MonBrightnessDown bind[soundinc] = XF86AudioRaiseVolume bind[sounddec] = XF86AudioLowerVolume bind[soundmute] = XF86AudioMute -#bind[shut] = MOD+x bind[pnext] = XF86AudioNext bind[pprev] = XF86AudioPrev bind[pplay] = XF86AudioPlay bind[notes] = MOD+n bind[files] = MOD+Shift+f bind[pass] = MOD+Shift+p +bind[browser] = MOD+Shift+w # Optional default programs that will only be validated if you override: program[screenshot_all] = ~/.local/bin/screenshot full # optional @@ -148,6 +156,9 @@ program[screenshot_wind] = ~/.local/bin/screenshot window # optional # quirk[Firefox-bin:firefox-bin] = TRANSSZ # quirk[Firefox:Dialog] = FLOAT # quirk[Gimp:gimp] = FLOAT + ANYWHERE +quirk[Gimp:gimp] = WS[5] +quirk[Chromium:chromium] = WS[2] +quirk[Steam:Steam] = WS[6] # quirk[XTerm:xterm] = XTERM_FONTADJ # quirk[xine:Xine Window] = FLOAT + ANYWHERE # quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE -- cgit v1.2.3