Update of a fish function and the Spectrwm configuration files

This commit is contained in:
adrien 2021-10-24 20:53:01 +02:00
parent 19ac337f01
commit 28b1a8ec6b
Signed by: adrien
GPG Key ID: 4F17BEA67707AC21
3 changed files with 6 additions and 173 deletions

View File

@ -3,4 +3,6 @@ function cache
/usr/bin/yay -Sc --noconfirm /usr/bin/yay -Sc --noconfirm
/usr/bin/gem cleanup --silent /usr/bin/gem cleanup --silent
/usr/bin/go clean -modcache -cache -testcache /usr/bin/go clean -modcache -cache -testcache
/usr/bin/composer clear-cache
/usr/bin/python -m pip cache purge
end end

View File

@ -1,7 +1,4 @@
# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE! # General
# https://htmlpreview.github.io/?https://github.com/conformal/spectrwm/blob/master/spectrwm.html
# NOTE: all rgb color values in this file are in hex! see XQueryColor for examples
workspace_limit = 9 workspace_limit = 9
focus_mode = follow focus_mode = follow
focus_close = last focus_close = last
@ -12,7 +9,7 @@ workspace_clamp = 0
warp_focus = 1 warp_focus = 1
warp_pointer = 0 warp_pointer = 0
# Window Decoration # Window decoration
border_width = 0 border_width = 0
color_focus = rgb:bb/c5/ff color_focus = rgb:bb/c5/ff
color_focus_maximized = yellow color_focus_maximized = yellow
@ -21,15 +18,7 @@ color_unfocus_maximized = rgb:88/88/00
region_padding = 5 region_padding = 5
tile_gap = 5 tile_gap = 5
# Region containment # Bar settings
# Distance window must be dragged/resized beyond the region edge before it is
# allowed outside the region.
# boundary_width = 50
# Remove window border when bar is disabled and there is only one window in workspace
# disable_border = 1
# Bar Settings
bar_enabled = 1 bar_enabled = 1
bar_border_width = 4 bar_border_width = 4
bar_border[1] = rgb:28/2a/36 bar_border[1] = rgb:28/2a/36
@ -41,8 +30,6 @@ bar_font_color_selected = black
bar_font = Agave Nerd Font:size=14:antialias:true bar_font = Agave Nerd Font:size=14:antialias:true
bar_action = ~/.config/spectrwm/bar bar_action = ~/.config/spectrwm/bar
bar_justify = left bar_justify = left
# bar_format = +|L+1<+N:+I +S (+D) +W +|R+A %a %b %d %R
# bar_format = +I +W +|R+A %a %b %d %R
bar_format = +I +W +|R+A (%a) %F %I:%M %p bar_format = +I +W +|R+A (%a) %F %I:%M %p
workspace_indicator = listcurrent,listactive,markcurrent,printnames workspace_indicator = listcurrent,listactive,markcurrent,printnames
bar_at_bottom = 0 bar_at_bottom = 0
@ -57,30 +44,8 @@ window_name_enabled = 1
verbose_layout = 1 verbose_layout = 1
urgent_enabled = 1 urgent_enabled = 1
# Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0
# dialog_ratio = 0.6
# Split a non-RandR dual head setup into one region per monitor
# (non-standard driver-based multihead is not seen by spectrwm)
# region = screen[1]:1280x1024+0+0
# region = screen[1]:1280x1024+1280+0
# Launch applications in a workspace of choice # Launch applications in a workspace of choice
autorun = ws[1]:/usr/bin/redshift -P -O 3000 autorun = ws[1]:/usr/bin/redshift -P -O 3000
# autorun = ws[2]:xombrero http://www.openbsd.org
# Customize workspace layout at start
# layout = ws[1]:4:0:0:0:vertical
# layout = ws[2]:0:0:0:0:horizontal
# layout = ws[3]:0:0:0:0:fullscreen
# layout = ws[4]:4:0:0:0:vertical_flip
# layout = ws[5]:0:0:0:0:horizontal_flip
# Set workspace name at start
# name = ws[1]:term
# name = ws[2]:www
# name = ws[3]:Browse
# name = ws[10]:Music
# Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2) # Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2)
modkey = Mod4 modkey = Mod4
@ -88,8 +53,7 @@ modkey = Mod4
# This allows you to include pre-defined key bindings for your keyboard layout. # This allows you to include pre-defined key bindings for your keyboard layout.
keyboard_mapping = ~/.config/spectrwm/spectrwm_fr.conf keyboard_mapping = ~/.config/spectrwm/spectrwm_fr.conf
# PROGRAMS # Programs
program[raise_volume] = pulseaudio-ctl up program[raise_volume] = pulseaudio-ctl up
program[lower_volume] = pulseaudio-ctl down program[lower_volume] = pulseaudio-ctl down
program[mute_volume] = pulseaudio-ctl mute program[mute_volume] = pulseaudio-ctl mute
@ -104,12 +68,6 @@ program[lower_bright] = xbacklight -dec 10
bind[raise_bright] = XF86MonBrightnessUp bind[raise_bright] = XF86MonBrightnessUp
bind[lower_bright] = XF86MonBrightnessDown bind[lower_bright] = XF86MonBrightnessDown
#program[raise_backlite] = XF86KbdBrightnessUp
#program[lower_backlite] = XF86KbdBrightnessDown
#bind[raise_backlite] =
#bind[lower_backlite] =
program[lock] = slock program[lock] = slock
bind[lock] = MOD+l bind[lock] = MOD+l
@ -128,49 +86,5 @@ bind[librewolf] = MOD+w
#program[intellij] = intellij-idea-ultimate-edition #program[intellij] = intellij-idea-ultimate-edition
#bind[intellij] = MOD+i #bind[intellij] = MOD+i
#program[chrome] = google-chrome-stable
#bind[chrome] = MOD+g
#program[virtualbox] = virtualbox
#bind[virtualbox] = MOD+v
program[ranger] = alacritty -e ranger program[ranger] = alacritty -e ranger
bind[ranger] = MOD+e bind[ranger] = MOD+e
# Validated default programs:
# program[lock] = xlock
# program[term] = xterm
# program[menu] = dmenu_run $dmenu_bottom -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
# 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):
# bind[] = MOD+Shift+Delete # disable lock
# bind[] = MOD+Shift+Return # disable term
# bind[] = MOD+p # disable menu
# Optional default programs that will only be validated if you override:
# program[screenshot_all] = screenshot.sh full # optional
# program[screenshot_wind] = screenshot.sh window # optional
# program[initscr] = initscreen.sh # optional
# EXAMPLE: Define 'firefox' action and bind to key.
# program[firefox] = firefox http://spectrwm.org/
# bind[firefox] = MOD+Shift+b
# QUIRKS
# Default quirks, remove with: quirk[class:name] = NONE
# quirk[MPlayer:xv] = FLOAT + FULLSCREEN + FOCUSPREV
# quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
# quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
# quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT
# quirk[Firefox-bin:firefox-bin] = TRANSSZ
# quirk[Firefox:Dialog] = FLOAT
# quirk[Gimp:gimp] = FLOAT + ANYWHERE
# quirk[XTerm:xterm] = XTERM_FONTADJ
# quirk[xine:Xine Window] = FLOAT + ANYWHERE
# quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
# quirk[xine:xine Panel] = FLOAT + ANYWHERE
# quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
# quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT
# quirk[pcb:pcb] = FLOAT

View File

@ -1,42 +1,16 @@
# Key bindings for French (fr) keyboards
# unbind with: bind[] = <keys>
bind[bar_toggle] = MOD+b bind[bar_toggle] = MOD+b
bind[bar_toggle_ws] = MOD+Shift+b bind[bar_toggle_ws] = MOD+Shift+b
#bind[button2] = MOD+v
#bind[cycle_layout] = MOD+space
#bind[flip_layout] = MOD+z
bind[float_toggle] = MOD+t bind[float_toggle] = MOD+t
#bind[focus_main] = MOD+m
#bind[focus_next] = MOD+j
bind[focus_next] = MOD+Tab bind[focus_next] = MOD+Tab
#bind[focus_prev] = MOD+k
bind[focus_prev] = MOD+Shift+Tab bind[focus_prev] = MOD+Shift+Tab
#bind[focus_urgent] = MOD+u
bind[height_grow] = MOD+i bind[height_grow] = MOD+i
bind[height_shrink] = MOD+k bind[height_shrink] = MOD+k
#bind[iconify] = MOD+w
#bind[initscr] = MOD+Shift+i
#bind[lock] = MOD+Shift+Delete
bind[master_add] = MOD+h bind[master_add] = MOD+h
bind[master_del] = MOD+v bind[master_del] = MOD+v
bind[master_grow] = MOD+z bind[master_grow] = MOD+z
bind[master_shrink] = MOD+a bind[master_shrink] = MOD+a
bind[maximize_toggle] = MOD+f bind[maximize_toggle] = MOD+f
bind[menu] = MOD+p bind[menu] = MOD+p
#bind[move_down] = MOD+Shift+asterisk
#bind[move_left] = MOD+ugrave
#bind[move_right] = MOD+asterisk
#bind[move_up] = MOD+shift+ugrave
#bind[mvrg_1] = MOD+Shift+KP_End
#bind[mvrg_2] = MOD+Shift+KP_Down
#bind[mvrg_3] = MOD+Shift+KP_Next
#bind[mvrg_4] = MOD+Shift+KP_Left
#bind[mvrg_5] = MOD+Shift+KP_Begin
#bind[mvrg_6] = MOD+Shift+KP_Right
#bind[mvrg_7] = MOD+Shift+KP_Home
#bind[mvrg_8] = MOD+Shift+KP_Up
#bind[mvrg_9] = MOD+Shift+KP_Prior
bind[mvws_1] = MOD+Shift+ampersand bind[mvws_1] = MOD+Shift+ampersand
bind[mvws_2] = MOD+Shift+eacute bind[mvws_2] = MOD+Shift+eacute
bind[mvws_3] = MOD+Shift+quotedbl bind[mvws_3] = MOD+Shift+quotedbl
@ -46,50 +20,13 @@ bind[mvws_6] = MOD+Shift+minus
bind[mvws_7] = MOD+Shift+egrave bind[mvws_7] = MOD+Shift+egrave
bind[mvws_8] = MOD+Shift+underscore bind[mvws_8] = MOD+Shift+underscore
bind[mvws_9] = MOD+Shift+ccedilla bind[mvws_9] = MOD+Shift+ccedilla
#bind[mvws_10] = MOD+Shift+agrave
#bind[mvws_11] = MOD+Shift+F1
#bind[mvws_12] = MOD+Shift+F2
#bind[mvws_13] = MOD+Shift+F3
#bind[mvws_14] = MOD+Shift+F4
#bind[mvws_15] = MOD+Shift+F5
#bind[mvws_16] = MOD+Shift+F6
#bind[mvws_17] = MOD+Shift+F7
#bind[mvws_18] = MOD+Shift+F8
#bind[mvws_19] = MOD+Shift+F9
#bind[mvws_20] = MOD+Shift+F10
#bind[mvws_21] = MOD+Shift+F11
#bind[mvws_22] = MOD+Shift+F12
#bind[name_workspace] = MOD+Shift+slash
bind[quit] = MOD+Shift+q bind[quit] = MOD+Shift+q
#bind[raise_toggle] = MOD+Shift+r
bind[restart] = MOD+Shift+r bind[restart] = MOD+Shift+r
#bind[rg_1] = MOD+KP_End
#bind[rg_2] = MOD+KP_Down
#bind[rg_3] = MOD+KP_Next
#bind[rg_4] = MOD+KP_Left
#bind[rg_5] = MOD+KP_Begin
#bind[rg_6] = MOD+KP_Right
#bind[rg_7] = MOD+KP_Home
#bind[rg_8] = MOD+KP_Up
#bind[rg_9] = MOD+KP_Prior
#bind[rg_next] = MOD+Shift+Right
#bind[rg_prev] = MOD+Shift+Left
#bind[screenshot_all] = MOD+s
#bind[screenshot_wind] = MOD+Shift+s
#bind[search_win] = MOD+f
#bind[search_workspace] = MOD+slash
bind[stack_dec] = MOD+semicolon bind[stack_dec] = MOD+semicolon
bind[stack_inc] = MOD+comma bind[stack_inc] = MOD+comma
bind[stack_reset] = MOD+Shift+space bind[stack_reset] = MOD+Shift+space
#bind[swap_main] = MOD+Return
bind[swap_next] = MOD+Shift+j bind[swap_next] = MOD+Shift+j
bind[swap_prev] = MOD+Shift+k bind[swap_prev] = MOD+Shift+k
#bind[term] = MOD+Shift+Return
#bind[uniconify] = MOD+Shift+w
#bind[version] = MOD+Shift+v
#bind[width_grow] = MOD+l
#bind[width_shrink] = MOD+j
#bind[wind_del] = MOD+x
bind[wind_kill] = MOD+c bind[wind_kill] = MOD+c
bind[ws_1] = MOD+ampersand bind[ws_1] = MOD+ampersand
bind[ws_2] = MOD+eacute bind[ws_2] = MOD+eacute
@ -100,23 +37,3 @@ bind[ws_6] = MOD+minus
bind[ws_7] = MOD+egrave bind[ws_7] = MOD+egrave
bind[ws_8] = MOD+underscore bind[ws_8] = MOD+underscore
bind[ws_9] = MOD+ccedilla bind[ws_9] = MOD+ccedilla
#bind[ws_10] = MOD+agrave
#bind[ws_11] = MOD+F1
#bind[ws_12] = MOD+F2
#bind[ws_13] = MOD+F3
#bind[ws_14] = MOD+F4
#bind[ws_15] = MOD+F5
#bind[ws_16] = MOD+F6
#bind[ws_17] = MOD+F7
#bind[ws_18] = MOD+F8
#bind[ws_19] = MOD+F9
#bind[ws_20] = MOD+F10
#bind[ws_21] = MOD+F11
#bind[ws_22] = MOD+F12
#bind[ws_next] = MOD+Right
#bind[ws_next_all] = MOD+Up
#bind[ws_next_move] = MOD+Shift+Up
#bind[ws_prev] = MOD+Left
#bind[ws_prev_all] = MOD+Down
#bind[ws_prev_move] = MOD+Shift+Down
#bind[ws_prior] = MOD+a