new menu script

master
Alessandro Mauri 5 years ago
parent 10ccb3b122
commit 5270767444
  1. 3
      conf/config/scripts/brightness
  2. 18
      conf/config/scripts/menu
  3. 37
      conf/config/sway/config
  4. 3
      conf/home/vim/.netrwhist
  5. 1
      conf/home/vim/plugged/nerdtree
  6. 1
      conf/home/vim/plugged/vim-surround
  7. 1
      conf/home/vim/plugged/vim-vinegar
  8. 12
      conf/home/vimrc

@ -10,7 +10,8 @@ case $1 in
;; ;;
*) *)
scale="1.0" scale="1.0"
;;
esac esac
val="$(echo "${back} * ${scale}" | bc)" val="$(echo "${back} * ${scale}" | bc)"
exec xbacklight -fps 30 -set $val exec xbacklight -fps 30 -set "$val"

@ -0,0 +1,18 @@
#!/bin/sh
MENU="wofi"
case $1 in
"dmenu")
exec $MENU -S run -p "" # Use run to replicate dmenu_run beahviour
;;
"apps")
exec $MENU -S drun -I -p "Search applications"
;;
"pass")
exec $MENU -d -P -L 1 -W 400 2>/dev/null
;;
*)
echo "Error option not valid"
;;
esac

@ -5,7 +5,8 @@ set $down j
set $up k set $up k
set $right l set $right l
set $term alacritty set $term alacritty
set $menu wofi --show drun set $menu $SCRIPT_DIR/menu apps
set $dmenu $SCRIPT_DIR/menu dmenu
# Disable xwaylnad # Disable xwaylnad
# xwayland disable # xwayland disable
@ -46,27 +47,29 @@ bindsym XF86AudioLowerVolume exec amixer -q sset Master 3%-
bindsym XF86AudioMute exec amixer -q sset Master toggle bindsym XF86AudioMute exec amixer -q sset Master toggle
bindsym XF86AudioMicMute exec amixer -q sset Capture toggle bindsym XF86AudioMicMute exec amixer -q sset Capture toggle
# Start a terminal # Start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
# Kill focused window # Kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# Start your launcher # Start your launcher
bindsym $mod+d exec $menu bindsym $mod+d exec $menu
bindsym $mod+Shift+d exec $dmenu
# Drag floating windows by holding down $mod and left mouse button. # Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod. # Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows. # Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right # Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging. # mouse button for dragging.
floating_modifier $mod normal floating_modifier $mod normal
# Reload the configuration file # Reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
# #
# Moving around: # Moving around:
# #

@ -1,5 +1,6 @@
let g:netrw_dirhistmax =10 let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =9 let g:netrw_dirhistcnt =0
let g:netrw_dirhist_0='/home/ale'
let g:netrw_dirhist_9='/home/ale/sw/conf/config/waybar' let g:netrw_dirhist_9='/home/ale/sw/conf/config/waybar'
let g:netrw_dirhist_8='/home/ale/sw/conf/config/sway' let g:netrw_dirhist_8='/home/ale/sw/conf/config/sway'
let g:netrw_dirhist_7='/home/ale/Documents/projects/distro' let g:netrw_dirhist_7='/home/ale/Documents/projects/distro'

@ -1 +0,0 @@
Subproject commit 343508e9fd981928f1e830c71c9d8b2a54edb7dd

@ -0,0 +1 @@
Subproject commit f51a26d3710629d031806305b6c8727189cd1935

@ -0,0 +1 @@
Subproject commit fcce70f1403ba4101668a4c960c577bddbd00f06

@ -11,7 +11,9 @@ call plug#begin('~/.vim/plugged')
" Declare the list of plugins. " Declare the list of plugins.
Plug 'itchyny/lightline.vim' Plug 'itchyny/lightline.vim'
Plug 'preservim/nerdtree' " Plug 'preservim/nerdtree'
Plug 'tpope/vim-vinegar'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'terryma/vim-multiple-cursors' Plug 'terryma/vim-multiple-cursors'
Plug 'ap/vim-css-color' Plug 'ap/vim-css-color'
@ -36,9 +38,9 @@ if !has('gui_running')
endif endif
" NERDTree " NERDTree
map <C-t> :NERDTreeToggle<CR> " map <C-t> :NERDTreeToggle<CR>
" Start nerdtree when no file is specified " Start nerdtree when no file is specified
autocmd StdinReadPre * let s:std_in=1 " autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif " autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif " autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif

Loading…
Cancel
Save