raccourcis sxhkd, et st en tant que application gnome

main
Gil Portenseigne 2024-09-19 10:18:36 +02:00
parent c6a1db9b80
commit de5223d8c0
4 changed files with 157 additions and 20 deletions

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=sxhkd
Comment=Simple X hotkey daemon
Exec=/usr/bin/sxhkd
Terminal=false
Type=Application

View File

@ -0,0 +1,124 @@
##
super + L
passmenu2
## wm independent hotkeys
##
#
## terminal emulator
#super + Return
# urxvt
#
## program launcher
#super + @space
# dmenu_run
#
## make sxhkd reload its configuration files:
#super + Escape
# pkill -USR1 -x sxhkd
#
##
## bspwm hotkeys
##
#
## quit/restart bspwm
#super + alt + {q,r}
# bspc {quit,wm -r}
#
## close and kill
#super + {_,shift + }w
# bspc node -{c,k}
#
## alternate between the tiled and monocle layout
#super + m
# bspc desktop -l next
#
## send the newest marked node to the newest preselected node
#super + y
# bspc node newest.marked.local -n newest.!automatic.local
#
## swap the current node and the biggest window
#super + g
# bspc node -s biggest.window
#
##
## state/flags
##
#
## set the window state
#super + {t,shift + t,s,f}
# bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
#
## set the node flags
#super + ctrl + {m,x,y,z}
# bspc node -g {marked,locked,sticky,private}
#
##
## focus/swap
##
#
## focus the node in the given direction
#super + {_,shift + }{h,j,k,l}
# bspc node -{f,s} {west,south,north,east}
#
## focus the node for the given path jump
#super + {p,b,comma,period}
# bspc node -f @{parent,brother,first,second}
#
## focus the next/previous window in the current desktop
#super + {_,shift + }c
# bspc node -f {next,prev}.local.!hidden.window
#
## focus the next/previous desktop in the current monitor
#super + bracket{left,right}
# bspc desktop -f {prev,next}.local
#
## focus the last node/desktop
#super + {grave,Tab}
# bspc {node,desktop} -f last
#
## focus the older or newer node in the focus history
#super + {o,i}
# bspc wm -h off; \
# bspc node {older,newer} -f; \
# bspc wm -h on
#
## focus or send to the given desktop
#super + {_,shift + }{1-9,0}
# bspc {desktop -f,node -d} '^{1-9,10}'
#
##
## preselect
##
#
## preselect the direction
#super + ctrl + {h,j,k,l}
# bspc node -p {west,south,north,east}
#
## preselect the ratio
#super + ctrl + {1-9}
# bspc node -o 0.{1-9}
#
## cancel the preselection for the focused node
#super + ctrl + space
# bspc node -p cancel
#
## cancel the preselection for the focused desktop
#super + ctrl + shift + space
# bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
##
## move/resize
##
#
## expand a window by moving one of its side outward
#super + alt + {h,j,k,l}
# bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
#
## contract a window by moving one of its side inward
#super + alt + shift + {h,j,k,l}
# bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
#
## move a floating window
#super + {Left,Down,Up,Right}
# bspc node -v {-20 0,0 20,0 -20,20 0}

View File

@ -0,0 +1,15 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Exec=st
TryExec=st
Icon=utilities-terminal
Terminal=false
Categories=System;TerminalEmulator;
Name=st
GenericName=Terminal
Comment=st is a simple terminal implementation for X
StartupWMClass=st-256color

View File

@ -5,7 +5,7 @@ groups | grep -q sudo || echo "Please add $(whoami) to sudo group with : sudo us
groups | grep -q sudo || return groups | grep -q sudo || return
# sudo usermod -aG sudo $user # pour passer sudoers, puis reboot # sudo usermod -aG sudo $user # pour passer sudoers, puis reboot
sudo apt install -y openjdk-17-jdk xclip maven vim-gtk3 vim vim-nox zsh fzf cmake python3-tldextract uuid-runtime webext-browserpass webext-ublock-origin-firefox curl pass python3 ripgrep fonts-firacode fd-find tmux postgresql rsync nextcloud-desktop tig locate htop libx11-dev libxinerama-dev libxft-dev libx11-xcb-dev libxcb-res0-dev arandr make gcc pulsemixer unclutter libnotify-bin ncal dmenu brightnessctl brightness-udev feh autorandr inkscape neomutt isync msmtp lynx notmuch abook urlview pulseaudio-utils mailsync slock bash-completion dunst kubectx imagemagick pdfarranger sudo apt install -y sxhkd openjdk-17-jdk xclip maven vim-gtk3 vim vim-nox zsh fzf cmake python3-tldextract uuid-runtime webext-browserpass webext-ublock-origin-firefox curl pass python3 ripgrep fonts-firacode fd-find tmux postgresql rsync nextcloud-desktop tig locate htop libx11-dev libxinerama-dev libxft-dev libx11-xcb-dev libxcb-res0-dev arandr make gcc pulsemixer unclutter libnotify-bin ncal dmenu brightnessctl brightness-udev feh autorandr inkscape neomutt isync msmtp lynx notmuch abook urlview pulseaudio-utils mailsync slock bash-completion dunst kubectx imagemagick pdfarranger
sudo apt autoremove sudo apt autoremove
[ ! -f "$HOME/.local/bin/fd" ] && ln -s $(which fdfind) ~/.local/bin/fd [ ! -f "$HOME/.local/bin/fd" ] && ln -s $(which fdfind) ~/.local/bin/fd
@ -15,20 +15,12 @@ sudo apt autoremove
sudo sed -i '/"PDF"/s/none/read|write/' /etc/ImageMagick-6/policy.xml sudo sed -i '/"PDF"/s/none/read|write/' /etc/ImageMagick-6/policy.xml
sudo chsh -s /bin/bash $USER sudo chsh -s /bin/bash $USER
# Installation oh my bash
[ ! -d "$HOME/.oh-my-bash/" ] && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" || echo "oh-my-bash installed" [ ! -d "$HOME/.oh-my-bash/" ] && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" || echo "oh-my-bash installed"
# Installation oh my bash
# Installation config specif bash + aliases # Installation config specif bash + aliases
grep -q "gil_specific" "$HOME/.bashrc" && echo "Bash configured" || sed -i -e '$asource "$HOME/.config/bash/gil_specific.sh"\' $HOME/.bashrc grep -q "gil_specific" "$HOME/.bashrc" && echo "Bash configured" || sed -i -e '$asource "$HOME/.config/bash/gil_specific.sh"\' $HOME/.bashrc
# Installation oh my zsh
#[ ! -d "$HOME/.oh-my-zsh/" ] && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" || echo "oh-my-zsh installed"
#sudo chsh -s /bin/zsh $USER
# Installation config specif bash + aliases
#sed -i '/source /d' $HOME/.zshrc
#grep -q "gil_specific" "$HOME/.zshrc" && echo "Zsh configured" || sed -i -e '$asource "$HOME/.config/bash/gil_specific.sh"\' $HOME/.zshrc
# Installation sdkman # Installation sdkman
[ ! -d "$HOME/.sdkman/" ] && curl -s "https://get.sdkman.io" | bash [ ! -d "$HOME/.sdkman/" ] && curl -s "https://get.sdkman.io" | bash
@ -44,8 +36,8 @@ gsettings set org.gnome.desktop.wm.keybindings toggle-maximized "['<Super>f']"
git config --global user.email "gil.portenseigne@nereide.fr" git config --global user.email "gil.portenseigne@nereide.fr"
git config --global user.name "Gil Portenseigne" git config --global user.name "Gil Portenseigne"
sudo mkdir -p /opt/Eclipse/ #sudo mkdir -p /opt/Eclipse/
sudo chown $USER /opt/Eclipse/ #sudo chown $USER /opt/Eclipse/
echo "Maintenant à installer : Idea-Eclipse, echo "Maintenant à installer : Idea-Eclipse,
Nexcloud sync, parsec" Nexcloud sync, parsec"
@ -56,18 +48,18 @@ echo "faire un source .bashrc"
mkdir -p ~/workspace/suckless mkdir -p ~/workspace/suckless
cd ~/workspace/suckless cd ~/workspace/suckless
[ ! -d "$HOME/workspace/suckless/dwm" ] && git clone git@git.portenseigne.ovh:pgil/dwm.git #[ ! -d "$HOME/workspace/suckless/dwm" ] && git clone git@git.portenseigne.ovh:pgil/dwm.git
[ ! -d "$HOME/workspace/suckless/dwm-to-gdm" ] && git clone git@git.portenseigne.ovh:pgil/dwm-to-gdm.git #[ ! -d "$HOME/workspace/suckless/dwm-to-gdm" ] && git clone git@git.portenseigne.ovh:pgil/dwm-to-gdm.git
[ ! -d "$HOME/workspace/suckless/st" ] && git clone git@git.portenseigne.ovh:pgil/st.git #[ ! -d "$HOME/workspace/suckless/st" ] && git clone git@git.portenseigne.ovh:pgil/st.git
[ ! -d "$HOME/workspace/suckless/slstatus" ] && git clone git@git.portenseigne.ovh:pgil/slstatus.git #[ ! -d "$HOME/workspace/suckless/slstatus" ] && git clone git@git.portenseigne.ovh:pgil/slstatus.git
[ ! -d "$HOME/workspace/suckless/nextvi" ] && git clone https://github.com/kyx0r/nextvi.git [ ! -d "$HOME/workspace/suckless/nextvi" ] && git clone https://github.com/kyx0r/nextvi.git
cd cd
cd ~/workspace/suckless/dwm && git checkout gil && git pull --rebase && make && sudo make install #cd ~/workspace/suckless/dwm && git checkout gil && git pull --rebase && make && sudo make install
cd ~/workspace/suckless/dwm-to-gdm && git checkout gil && git pull --rebase && sudo make install #cd ~/workspace/suckless/dwm-to-gdm && git checkout gil && git pull --rebase && sudo make install
cd ~/workspace/suckless/st && git checkout gil && git pull --rebase && make && sudo make install #cd ~/workspace/suckless/st && git checkout gil && git pull --rebase && make && sudo make install
cd ~/workspace/suckless/slstatus && git checkout gil && git pull --rebase && make && sudo make install #cd ~/workspace/suckless/slstatus && git checkout gil && git pull --rebase && make && sudo make install
###### dwm install : ###### dwm install :
#sudo apt install libx11-dev libxinerama-dev libxft-dev libx11-xcb-dev libxcb-res0-dev arandr make gcc pulsemixer, unclutter libnotify-bin ncal dmenu brightnessctl brightness-udev #sudo apt install libx11-dev libxinerama-dev libxft-dev libx11-xcb-dev libxcb-res0-dev arandr make gcc pulsemixer, unclutter libnotify-bin ncal dmenu brightnessctl brightness-udev