...
 
Commits (2)
......@@ -22,5 +22,5 @@ rofi.display-combi:
rofi.display-drun:
! Icons
! rofi.show-icons: true
rofi.show-icons: true
rofi.drun-icon-theme: Papirus
......@@ -38,6 +38,10 @@ set $urgent $color_1
# wallpaper for ocean scheme
output * bg /home/kosciak/.config/misc/wallpapers/ocean_4k.png fill
# map stylus (transforms)
input 1386:147:Wacom_Serial_Penabled_1FG_Touchscreen_Pen map_to_output LVDS-1
input 1386:147:Wacom_Serial_Penabled_1FG_Touchscreen_Finger map_to_output LVDS-1
# keybinds
set $mod Mod4
set $left h
......@@ -50,6 +54,7 @@ set $term termite
set $menu rofi -show combi
set $passmenu /home/kosciak/projects/desktop/rofi-pass/main.py
set $screenshot grim -g "$(slurp)" /home/kosciak/screenshots/$(date +'%Y-%m-%d-%H%M%S_grim.png')
set $rotate-x200 /home/kosciak/scripts/rotate-x200
# colors
# type border bg text indicator child_border
......@@ -163,6 +168,7 @@ bindsym $mod+Return exec $term
bindsym $mod+space exec $menu
bindsym $mod+Shift+p exec $passmenu
bindsym $mod+Shift+q exec $screenshot
bindsym XF86Launch6 exec $rotate-x200
# for_window [title="bemenu"] exec --no-startup-id notify-send "title changed"
# for_window [title="bemenu"] resize set 640 480; move position center; move left 20px; exec --no-startup-id notify-send "title changed"
......
......@@ -5,76 +5,80 @@ autoload -U colors;
colors;
if which yadm 1>/dev/null 2>&1; then
echo "";
echo "$bold_color$fg[green]updating dotfiles${reset_color}";
echo "";
yadm pull origin master;
echo "";
echo "$bold_color$fg[green]updating dotfiles${reset_color}";
echo "";
yadm pull origin master;
fi
if [ -d $HOME/.yadm-project ]; then
echo "";
echo "$bold_color$fg[green]updating dotfiles${reset_color}";
echo "";
$HOME/.yadm-project/yadm pull origin master;
echo "";
echo "$bold_color$fg[green]updating dotfiles${reset_color}";
echo "";
$HOME/.yadm-project/yadm pull origin master;
fi
# Update mirrorlist
if which reflector 1> /dev/null 2>&1; then
echo "";
echo "$bold_color$fg[blue]updating mirrorlist${reset_color}";
echo "";
sudo reflector --latest 200 --age 24 --sort rate --save /etc/pacman.d/mirrorlist;
if [ -f /etc/pacman.d/mirrorlist.pacnew ]; then
sudo rm /etc/pacman.d/mirrorlist.pacnew;
fi
echo "";
echo "$bold_color$fg[blue]updating mirrorlist${reset_color}\n";
read "choice?(y/n)? "
if [[ "$choice" =~ ^[Yy]$ ]];
then
sudo reflector --latest 200 --age 24 \
--sort rate --save /etc/pacman.d/mirrorlist;
if [ -f /etc/pacman.d/mirrorlist.pacnew ]; then
sudo rm /etc/pacman.d/mirrorlist.pacnew;
fi
fi
fi
# OS Package updater
if which pacmatic 1> /dev/null 2>&1; then
echo "";
echo "$bold_color$fg[blue]updating system packages${reset_color}";
echo "";
sudo pacmatic -Syu;
if which yay 1> /dev/null 2>&1; then
echo "";
echo "$bold_color$fg[red]updating AUR packages${reset_color}";
echo "";
yay -Syu;
fi
# APT
echo "";
echo "$bold_color$fg[blue]updating system packages${reset_color}";
echo "";
sudo pacmatic -Syu;
if which yay 1> /dev/null 2>&1; then
echo "";
echo "$bold_color$fg[red]updating AUR packages${reset_color}";
echo "";
yay -Syu;
fi
# APT
elif which apt 1> /dev/null 2>&1; then
echo "";
echo "$bold_color$fg[blue]updating system packages${reset_color}";
echo "";
if which sudo 1> /dev/null 2>&1; then
sudo apt update && sudo apt upgrade
else
apt update && apt upgrade
fi
echo "";
echo "$bold_color$fg[blue]updating system packages${reset_color}";
echo "";
if which sudo 1> /dev/null 2>&1; then
sudo apt update && sudo apt upgrade
else
apt update && apt upgrade
fi
fi
# Atom Editor update
if which apm 1> /dev/null 2>&1; then
echo "";
echo "$bold_color$fg[green]updating Atom Editor plugins${reset_color}";
echo "";
apm update;
echo "";
echo "$bold_color$fg[green]updating Atom Editor plugins${reset_color}";
echo "";
apm update;
fi
# Neovim plugin update
if which nvim 1> /dev/null 2>&1; then
echo "";
echo "$bold_color$fg[green]updating Neovim plugins${reset_color}";
echo "";
nvim -c dein#update() -c q;
echo "";
echo "$bold_color$fg[green]done!${reset_color}";
echo "";
echo "$bold_color$fg[green]updating Neovim plugins${reset_color}";
echo "";
nvim -c dein#update() -c q;
echo "";
echo "$bold_color$fg[green]done!${reset_color}";
fi
# ZSH plugins update
if [ -d $HOME/.zgen ]; then
echo "";
echo "$bold_color$fg[green]updating shell plugins${reset_color}";
echo "";
zsh -c "source $HOME/.zgen/zgen.zsh && zgen update && zgen selfupdate";
echo "";
echo "$bold_color$fg[green]updating shell plugins${reset_color}";
echo "";
zsh -c "source $HOME/.zgen/zgen.zsh && zgen update && zgen selfupdate";
fi