new menu script
This commit is contained in:
parent
10ccb3b122
commit
5270767444
@ -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"
|
||||||
|
18
conf/config/scripts/menu
Executable file
18
conf/config/scripts/menu
Executable file
@ -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
|
||||||
@ -54,6 +55,7 @@ bindsym XF86AudioMicMute exec amixer -q sset Capture toggle
|
|||||||
|
|
||||||
# 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.
|
||||||
@ -67,6 +69,7 @@ bindsym XF86AudioMicMute exec amixer -q sset Capture toggle
|
|||||||
|
|
||||||
# Exit sway (logs you out of your Wayland session)
|
# 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'
|
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
|
|
1
conf/home/vim/plugged/vim-surround
Submodule
1
conf/home/vim/plugged/vim-surround
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f51a26d3710629d031806305b6c8727189cd1935
|
1
conf/home/vim/plugged/vim-vinegar
Submodule
1
conf/home/vim/plugged/vim-vinegar
Submodule
@ -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…
Reference in New Issue
Block a user