Update a bunch of configs
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
738f83183f
commit
052fb6bada
24 changed files with 474 additions and 68 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -16,4 +16,6 @@ system/.config/pulse/*
|
||||||
system/.config/cmus/*
|
system/.config/cmus/*
|
||||||
!system/.config/cmus/rc
|
!system/.config/cmus/rc
|
||||||
|
|
||||||
system/.config/polybar/scripts/gmail/credentials.json
|
system/.config/polybar/scripts/gmail/credentials.json
|
||||||
|
|
||||||
|
system/.config/i3/config
|
13
install
13
install
|
@ -27,6 +27,7 @@ DIRECTORIES=(
|
||||||
"Build"
|
"Build"
|
||||||
"Downloads"
|
"Downloads"
|
||||||
"Projects"
|
"Projects"
|
||||||
|
"Tasks"
|
||||||
"Videos"
|
"Videos"
|
||||||
"Pictures"
|
"Pictures"
|
||||||
"Music"
|
"Music"
|
||||||
|
@ -54,15 +55,16 @@ LINKED_FILES_HOME=(
|
||||||
".config/python"
|
".config/python"
|
||||||
".config/redshift"
|
".config/redshift"
|
||||||
".config/streamlink"
|
".config/streamlink"
|
||||||
|
".config/task"
|
||||||
".config/termite"
|
".config/termite"
|
||||||
".config/Trolltech.conf"
|
".config/Trolltech.conf"
|
||||||
".config/vim"
|
".config/vim"
|
||||||
".config/vue"
|
".config/vue"
|
||||||
".config/wget"
|
".config/wget"
|
||||||
".config/X11"
|
".config/X11"
|
||||||
|
".config/zathura"
|
||||||
".config/zsh"
|
".config/zsh"
|
||||||
".local/bin"
|
".local/bin"
|
||||||
".config/zathura"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Symlinks which will be created
|
# Symlinks which will be created
|
||||||
|
@ -85,10 +87,10 @@ ADD_GROUPS=(
|
||||||
|
|
||||||
# Array of systemd services which should be enabled
|
# Array of systemd services which should be enabled
|
||||||
SYSTEMD_SERVICES=(
|
SYSTEMD_SERVICES=(
|
||||||
"bumblebeed"
|
|
||||||
"cronie"
|
"cronie"
|
||||||
"NetworkManager"
|
"NetworkManager"
|
||||||
"org.cups.cupsd"
|
"org.cups.cupsd"
|
||||||
|
"suspend"
|
||||||
)
|
)
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
|
@ -148,6 +150,13 @@ do
|
||||||
add_to_group "${USER}" "${group}"
|
add_to_group "${USER}" "${group}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
print_section "Copying systemd services"
|
||||||
|
for file in "${SYSTEM_DIR}/etc/systemd/system/"*
|
||||||
|
do
|
||||||
|
print_log "Copy ${YELLOW}$(basename ${file})${RESET} to ${YELLOW}/etc/systemd/system${RESET}"
|
||||||
|
sudo install -m 644 "${file}" "/etc/systemd/system"
|
||||||
|
done
|
||||||
|
|
||||||
print_section "Enabling systemd services"
|
print_section "Enabling systemd services"
|
||||||
for service in "${SYSTEMD_SERVICES[@]}"
|
for service in "${SYSTEMD_SERVICES[@]}"
|
||||||
do
|
do
|
||||||
|
|
|
@ -3,25 +3,31 @@ adapta-kde
|
||||||
adobe-source-code-pro-fonts
|
adobe-source-code-pro-fonts
|
||||||
adobe-source-sans-pro-fonts
|
adobe-source-sans-pro-fonts
|
||||||
alsa-utils
|
alsa-utils
|
||||||
|
anki
|
||||||
arandr
|
arandr
|
||||||
autoconf
|
autoconf
|
||||||
autokey-py3
|
autojump
|
||||||
|
autokey
|
||||||
automake
|
automake
|
||||||
autopep8
|
autopep8
|
||||||
bash
|
bash
|
||||||
bash-completion
|
bash-completion
|
||||||
|
bat
|
||||||
bbswitch
|
bbswitch
|
||||||
|
beep
|
||||||
|
betterlockscreen-git
|
||||||
biber
|
biber
|
||||||
binutils
|
binutils
|
||||||
bison
|
bison
|
||||||
bless
|
bless
|
||||||
blueman
|
blueman
|
||||||
bluez-utils
|
bluez-utils
|
||||||
bumblebee
|
|
||||||
bzip2
|
bzip2
|
||||||
citra-git
|
cava
|
||||||
citra-qt-git
|
citra-qt-git
|
||||||
|
cmatrix
|
||||||
cmus
|
cmus
|
||||||
|
code
|
||||||
composer
|
composer
|
||||||
compton-git
|
compton-git
|
||||||
coreutils
|
coreutils
|
||||||
|
@ -42,16 +48,20 @@ dolphin-emu-git
|
||||||
dunst
|
dunst
|
||||||
e2fsprogs
|
e2fsprogs
|
||||||
efibootmgr
|
efibootmgr
|
||||||
exa
|
escrotum-git
|
||||||
|
evince
|
||||||
exfat-utils
|
exfat-utils
|
||||||
fakeroot
|
fakeroot
|
||||||
|
fd
|
||||||
feh
|
feh
|
||||||
|
figlet
|
||||||
file
|
file
|
||||||
filemanager-actions
|
filemanager-actions
|
||||||
filesystem
|
filesystem
|
||||||
filezilla
|
filezilla
|
||||||
findutils
|
findutils
|
||||||
firefox
|
firefox
|
||||||
|
flameshot
|
||||||
flex
|
flex
|
||||||
flips-git
|
flips-git
|
||||||
fuseiso
|
fuseiso
|
||||||
|
@ -65,21 +75,21 @@ git
|
||||||
gksu
|
gksu
|
||||||
glibc
|
glibc
|
||||||
google-chrome-beta
|
google-chrome-beta
|
||||||
|
gotop-bin
|
||||||
gparted
|
gparted
|
||||||
gpicview-gtk3
|
gpicview-gtk3
|
||||||
grep
|
grep
|
||||||
grive-git
|
grive-git
|
||||||
grub
|
grub
|
||||||
gscreenshot
|
|
||||||
gtk-engine-murrine
|
gtk-engine-murrine
|
||||||
gtk-engines
|
gtk-engines
|
||||||
gucharmap
|
gucharmap
|
||||||
guvcview
|
guvcview
|
||||||
gzip
|
gzip
|
||||||
hplip
|
hplip
|
||||||
htop
|
httpie
|
||||||
i3-gaps
|
i3-gaps
|
||||||
i3lock
|
i3-layout-manager-git
|
||||||
i3lock-fancy-git
|
i3lock-fancy-git
|
||||||
ibus
|
ibus
|
||||||
ibus-anthy
|
ibus-anthy
|
||||||
|
@ -89,16 +99,17 @@ inotify-tools
|
||||||
intellij-idea-ultimate-edition
|
intellij-idea-ultimate-edition
|
||||||
iproute2
|
iproute2
|
||||||
iputils
|
iputils
|
||||||
|
java-openjfx-bin
|
||||||
|
jdk-openjdk
|
||||||
jdk8
|
jdk8
|
||||||
jfsutils
|
jfsutils
|
||||||
jrommanager
|
jre-openjdk
|
||||||
jstest-gtk-git
|
jstest-gtk-git
|
||||||
keepassxc
|
keepassxc
|
||||||
kvantum-theme-adapta
|
kvantum-theme-adapta
|
||||||
less
|
less
|
||||||
lib32-mesa
|
lib32-mesa
|
||||||
lib32-nvidia-utils
|
lib32-nvidia-utils
|
||||||
lib32-primus
|
|
||||||
lib32-virtualgl
|
lib32-virtualgl
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
licenses
|
licenses
|
||||||
|
@ -106,10 +117,9 @@ light
|
||||||
linux
|
linux
|
||||||
linux-firmware
|
linux-firmware
|
||||||
logrotate
|
logrotate
|
||||||
lutris-git
|
lsd
|
||||||
lvm2
|
lvm2
|
||||||
lxappearance
|
lxappearance
|
||||||
ly-git
|
|
||||||
m4
|
m4
|
||||||
make
|
make
|
||||||
man-db
|
man-db
|
||||||
|
@ -119,30 +129,37 @@ mdadm
|
||||||
melonds-git
|
melonds-git
|
||||||
mesa
|
mesa
|
||||||
mesa-demos
|
mesa-demos
|
||||||
mkcert
|
mgba-qt
|
||||||
|
minecraft-launcher
|
||||||
mono
|
mono
|
||||||
mplayer
|
|
||||||
mpv
|
mpv
|
||||||
mtpfs
|
mtpfs
|
||||||
|
mupdf
|
||||||
mupen64plus
|
mupen64plus
|
||||||
mupen64plus-qt
|
mupen64plus-qt
|
||||||
nano
|
nano
|
||||||
nemo
|
nemo
|
||||||
nemo-fileroller
|
nemo-fileroller
|
||||||
nemo-share
|
nemo-share
|
||||||
|
neofetch
|
||||||
|
nerd-fonts-complete
|
||||||
netctl
|
netctl
|
||||||
network-manager-applet
|
network-manager-applet
|
||||||
networkmanager
|
networkmanager
|
||||||
|
newsboat
|
||||||
nmap
|
nmap
|
||||||
nodejs
|
nodejs
|
||||||
|
notable-bin
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
npm
|
npm
|
||||||
nvidia
|
nvidia
|
||||||
nvidia-settings
|
nvidia-settings
|
||||||
|
nvidia-xrun
|
||||||
obs-studio
|
obs-studio
|
||||||
openssh
|
openssh
|
||||||
|
ovmf
|
||||||
p7zip
|
p7zip
|
||||||
pacman
|
pacman
|
||||||
pamixer
|
pamixer
|
||||||
|
@ -152,11 +169,13 @@ paper-icon-theme
|
||||||
patch
|
patch
|
||||||
pavucontrol
|
pavucontrol
|
||||||
pciutils
|
pciutils
|
||||||
|
pegasus-fe-git
|
||||||
perl
|
perl
|
||||||
perl-archive-zip
|
perl-archive-zip
|
||||||
phonon-qt4
|
phonon-qt4
|
||||||
|
php-cs-fixer
|
||||||
|
picard
|
||||||
polybar
|
polybar
|
||||||
primus
|
|
||||||
procps-ng
|
procps-ng
|
||||||
psmisc
|
psmisc
|
||||||
pulseaudio
|
pulseaudio
|
||||||
|
@ -164,7 +183,9 @@ pulseaudio-alsa
|
||||||
pyside2
|
pyside2
|
||||||
python-atspi
|
python-atspi
|
||||||
python-black
|
python-black
|
||||||
|
python-google-api-python-client
|
||||||
python-gspread-git
|
python-gspread-git
|
||||||
|
python-numpy
|
||||||
python-oauth2client
|
python-oauth2client
|
||||||
python-pycodestyle
|
python-pycodestyle
|
||||||
python-pylint
|
python-pylint
|
||||||
|
@ -172,28 +193,39 @@ python-pyqt5
|
||||||
python-pyusb
|
python-pyusb
|
||||||
python-reportlab
|
python-reportlab
|
||||||
python2-notify
|
python2-notify
|
||||||
|
python2-numpy
|
||||||
|
qt-gstreamer
|
||||||
|
qt5-gamepad
|
||||||
|
qt5-graphicaleffects
|
||||||
qt5-styleplugins
|
qt5-styleplugins
|
||||||
|
qt5-tools
|
||||||
qt5ct
|
qt5ct
|
||||||
qutebrowser
|
qutebrowser
|
||||||
redshift
|
redshift
|
||||||
reiserfsprogs
|
reiserfsprogs
|
||||||
ripgrep
|
ripgrep
|
||||||
rofi
|
rofi
|
||||||
rpcs3-git
|
rom-manager-git
|
||||||
ruby
|
ruby
|
||||||
rust-racer
|
rust-racer
|
||||||
rustup
|
rustup
|
||||||
s-nail
|
s-nail
|
||||||
|
sd
|
||||||
sed
|
sed
|
||||||
shadow
|
shadow
|
||||||
shellcheck
|
shellcheck
|
||||||
simple-scan
|
simple-scan
|
||||||
|
slock
|
||||||
steam
|
steam
|
||||||
streamlink-git
|
streamlink-git
|
||||||
sudo
|
sudo
|
||||||
|
sxiv-git
|
||||||
sysfsutils
|
sysfsutils
|
||||||
systemd-sysvcompat
|
systemd-sysvcompat
|
||||||
tar
|
tar
|
||||||
|
task
|
||||||
|
tealdeer
|
||||||
|
terminus-font
|
||||||
termite
|
termite
|
||||||
texinfo
|
texinfo
|
||||||
texlive-bibtexextra
|
texlive-bibtexextra
|
||||||
|
@ -215,10 +247,12 @@ texlive-pstricks
|
||||||
texlive-publishers
|
texlive-publishers
|
||||||
texlive-science
|
texlive-science
|
||||||
tk
|
tk
|
||||||
tldr
|
todoist-git
|
||||||
|
tsk-git
|
||||||
ttf-croscore
|
ttf-croscore
|
||||||
ttf-dejavu
|
ttf-dejavu
|
||||||
ttf-droid
|
ttf-droid
|
||||||
|
ttf-fira-mono
|
||||||
ttf-fira-sans
|
ttf-fira-sans
|
||||||
ttf-font-awesome
|
ttf-font-awesome
|
||||||
ttf-hack
|
ttf-hack
|
||||||
|
@ -230,18 +264,16 @@ ttf-ubuntu-font-family
|
||||||
unrar
|
unrar
|
||||||
usbutils
|
usbutils
|
||||||
util-linux
|
util-linux
|
||||||
vagrant
|
|
||||||
vi
|
vi
|
||||||
vim
|
vim
|
||||||
virtualbox
|
|
||||||
virtualbox-host-modules-arch
|
virtualbox-host-modules-arch
|
||||||
visual-studio-code-bin
|
|
||||||
vlc
|
|
||||||
which
|
which
|
||||||
wine
|
whois
|
||||||
|
wine-tkg-staging-esync-marchopt-git
|
||||||
winetricks
|
winetricks
|
||||||
wqy-zenhei
|
wqy-zenhei
|
||||||
xdelta3
|
xdelta3
|
||||||
|
xdg-user-dirs
|
||||||
xf86-video-intel
|
xf86-video-intel
|
||||||
xfsprogs
|
xfsprogs
|
||||||
xorg-server
|
xorg-server
|
||||||
|
@ -252,5 +284,10 @@ xorg-xprop
|
||||||
xorg-xrandr
|
xorg-xrandr
|
||||||
xpad
|
xpad
|
||||||
xreader
|
xreader
|
||||||
|
xss-lock
|
||||||
xwiimote-git
|
xwiimote-git
|
||||||
yay
|
yay-git
|
||||||
|
youtube-dl
|
||||||
|
zathura-pdf-mupdf
|
||||||
|
zsh
|
||||||
|
zsh-completions
|
||||||
|
|
|
@ -45,6 +45,6 @@ print_section "Installing global npm packages"
|
||||||
npm i -g "${NPM_PACKAGES[@]}"
|
npm i -g "${NPM_PACKAGES[@]}"
|
||||||
|
|
||||||
print_section "Install Rust toolchain and components"
|
print_section "Install Rust toolchain and components"
|
||||||
rustup toolchain install beta
|
rustup toolchain install nightly
|
||||||
rustup default beta
|
rustup default nightly
|
||||||
rustup component add "${RUST_COMPONENTS[@]}"
|
rustup component add "${RUST_COMPONENTS[@]}"
|
|
@ -12,4 +12,16 @@
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# This script is executed when you start the x-server.
|
# This script is executed when you start the x-server.
|
||||||
. "${XDG_CONFIG_HOME}/X11/xsetup"
|
. "${XDG_CONFIG_HOME}/X11/xsetup"
|
||||||
i3
|
|
||||||
|
# Load different i3 configuration depending on nvidia-xrun is used because
|
||||||
|
# the monitor names are different.
|
||||||
|
NVIDIA_CHECK="$(xrandr | grep "eDP-1-1 connected")"
|
||||||
|
if [ -z "${NVIDIA_CHECK}" ]; then
|
||||||
|
LOCAL_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.intel"
|
||||||
|
else
|
||||||
|
LOCAL_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.nvidia"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat "${LOCAL_I3_CONFIG}" "${XDG_CONFIG_HOME}/i3/config.base" > "${XDG_CONFIG_HOME}/i3/config"
|
||||||
|
|
||||||
|
i3
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"undoUsingBackspace": true,
|
"undoUsingBackspace": true,
|
||||||
"windowDefaultSize": [
|
"windowDefaultSize": [
|
||||||
924,
|
924,
|
||||||
962
|
336
|
||||||
],
|
],
|
||||||
"hPanePosition": 233,
|
"hPanePosition": 233,
|
||||||
"columnWidths": [
|
"columnWidths": [
|
||||||
|
|
|
@ -19,5 +19,8 @@
|
||||||
# Synchronize notes every 15 minutes
|
# Synchronize notes every 15 minutes
|
||||||
*/15 * * * * $HOME/.local/bin/sync-notes >> $HOME/.local/log/cron.log
|
*/15 * * * * $HOME/.local/bin/sync-notes >> $HOME/.local/log/cron.log
|
||||||
|
|
||||||
# Synchronize rss feeds every 10 minutes
|
# Synchronize tasks every 15 minutes
|
||||||
*/10 * * * * $HOME/.local/bin/rss-sync >> $HOME/.local/log/cron.log
|
*/15 * * * * $HOME/.local/bin/sync-tasks >> $HOME/.local/log/cron.log
|
||||||
|
|
||||||
|
# Synchronize rss feeds every 15 minutes
|
||||||
|
*/15 * * * * $HOME/.local/bin/rss-sync >> $HOME/.local/log/cron.log
|
||||||
|
|
|
@ -47,8 +47,8 @@ alias svn='svn --config-dir "${XDG_CONFIG_HOME}/subversion"'
|
||||||
# Alias for gpg2 to use XDG directories
|
# Alias for gpg2 to use XDG directories
|
||||||
alias gpg2='gpg2 --homedir "${XDG_DATA_HOME}/gnupg"'
|
alias gpg2='gpg2 --homedir "${XDG_DATA_HOME}/gnupg"'
|
||||||
|
|
||||||
# Alias for nvidia-settings to use XDG directories
|
|
||||||
alias nvidia-settings='optirun -b primus nvidia-settings --config="${XDG_CONFIG_HOME}/nvidia/settings" -c :8'
|
|
||||||
|
|
||||||
# Alias for sqlite3 to use XDG directories
|
# Alias for sqlite3 to use XDG directories
|
||||||
alias sqlite3='sqlite3 -init "${XDG_CONFIG_HOME}/sqlite3/sqliterc"'
|
alias sqlite3='sqlite3 -init "${XDG_CONFIG_HOME}/sqlite3/sqliterc"'
|
||||||
|
|
||||||
|
alias t='task todo'
|
||||||
|
alias ta='task add'
|
|
@ -15,8 +15,6 @@
|
||||||
|
|
||||||
# XDG Overrides for unsupported programs
|
# XDG Overrides for unsupported programs
|
||||||
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME}/httpie"
|
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME}/httpie"
|
||||||
export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority"
|
|
||||||
touch "${XAUTHORITY}"
|
|
||||||
export WGETRC="${XDG_CONFIG_HOME}/wget/wgetrc"
|
export WGETRC="${XDG_CONFIG_HOME}/wget/wgetrc"
|
||||||
export VIMINIT=":source ${XDG_CONFIG_HOME}/vim/vimrc"
|
export VIMINIT=":source ${XDG_CONFIG_HOME}/vim/vimrc"
|
||||||
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
|
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
|
||||||
|
@ -36,6 +34,8 @@ export GEM_SPEC_CACHE="${XDG_CACHE_HOME}/gem/specs"
|
||||||
mkdir -p "${XDG_DATA_HOME}/wine/prefixes"
|
mkdir -p "${XDG_DATA_HOME}/wine/prefixes"
|
||||||
export WINEPREFIX="${XDG_DATA_HOME}/wine/prefixes/default"
|
export WINEPREFIX="${XDG_DATA_HOME}/wine/prefixes/default"
|
||||||
export SQLITE_HISTORY="${XDG_DATA_HOME}/sqlite_history"
|
export SQLITE_HISTORY="${XDG_DATA_HOME}/sqlite_history"
|
||||||
|
export TASKDATA="${HOME}/Tasks"
|
||||||
|
export TASKRC="${XDG_CONFIG_HOME}/task/taskrc"
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
mkdir -p "${XDG_DATA_HOME}/python"
|
mkdir -p "${XDG_DATA_HOME}/python"
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
LocationMode=path-bar
|
LocationMode=path-bar
|
||||||
ShowHidden=true
|
ShowHidden=true
|
||||||
ShowSizeColumn=true
|
ShowSizeColumn=true
|
||||||
GeometryX=540
|
GeometryX=0
|
||||||
GeometryY=225
|
GeometryY=0
|
||||||
GeometryWidth=840
|
GeometryWidth=840
|
||||||
GeometryHeight=630
|
GeometryHeight=630
|
||||||
SortColumn=name
|
SortColumn=name
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
###############################################################################
|
||||||
|
# Outputs #
|
||||||
|
###############################################################################
|
||||||
|
set $output1 HDMI-1-1
|
||||||
|
set $output2 eDP-1-1
|
||||||
# SCRIPT NAME:
|
# SCRIPT NAME:
|
||||||
# .config/i3/config
|
# .config/i3/config.base
|
||||||
#
|
#
|
||||||
# AUTHOR:
|
# AUTHOR:
|
||||||
# Severin Kaderli <severin@kaderli.dev>
|
# Severin Kaderli <severin@kaderli.dev>
|
||||||
|
@ -8,7 +13,8 @@
|
||||||
# This file contains my i3 configuration.
|
# This file contains my i3 configuration.
|
||||||
#
|
#
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# This file is automatically used by i3.
|
# This file is automatically merged together with the local i3 configuration
|
||||||
|
# on start.
|
||||||
|
|
||||||
# Disable window titlebars and borders
|
# Disable window titlebars and borders
|
||||||
for_window [class="^.*"] border pixel 0
|
for_window [class="^.*"] border pixel 0
|
||||||
|
@ -33,13 +39,6 @@ set $mod Mod4
|
||||||
set $alt Mod1
|
set $alt Mod1
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# Outputs #
|
|
||||||
###############################################################################
|
|
||||||
set $output1 HDMI-1
|
|
||||||
set $output2 eDP-1
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Workspaces #
|
# Workspaces #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -70,7 +69,7 @@ workspace $workspace10 output $output2
|
||||||
# Assign applications to workspaces
|
# Assign applications to workspaces
|
||||||
assign [class="Google-chrome-beta"] $workspace1
|
assign [class="Google-chrome-beta"] $workspace1
|
||||||
assign [instance="cmus"] $workspace10
|
assign [instance="cmus"] $workspace10
|
||||||
assign [class="Code"] $workspace3
|
assign [class="code-oss"] $workspace3
|
||||||
assign [class="Nemo"] $workspace4
|
assign [class="Nemo"] $workspace4
|
||||||
assign [class="discord"] $workspace5
|
assign [class="discord"] $workspace5
|
||||||
assign [class="Steam"] $workspace6
|
assign [class="Steam"] $workspace6
|
||||||
|
|
263
system/.config/i3/config.base
Normal file
263
system/.config/i3/config.base
Normal file
|
@ -0,0 +1,263 @@
|
||||||
|
# SCRIPT NAME:
|
||||||
|
# .config/i3/config.base
|
||||||
|
#
|
||||||
|
# AUTHOR:
|
||||||
|
# Severin Kaderli <severin@kaderli.dev>
|
||||||
|
#
|
||||||
|
# DESCRIPTION:
|
||||||
|
# This file contains my i3 configuration.
|
||||||
|
#
|
||||||
|
# USAGE:
|
||||||
|
# This file is automatically merged together with the local i3 configuration
|
||||||
|
# on start.
|
||||||
|
|
||||||
|
# Disable window titlebars and borders
|
||||||
|
for_window [class="^.*"] border pixel 0
|
||||||
|
|
||||||
|
# Gaps
|
||||||
|
gaps inner 25
|
||||||
|
#gaps outer -10
|
||||||
|
|
||||||
|
new_window none
|
||||||
|
|
||||||
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
|
# is used in the bar {} block below.
|
||||||
|
font pango:Noto Sans, Font Awesome 5 Free 15px
|
||||||
|
|
||||||
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
|
floating_modifier $mod
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Modifiers #
|
||||||
|
###############################################################################
|
||||||
|
set $mod Mod4
|
||||||
|
set $alt Mod1
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Workspaces #
|
||||||
|
###############################################################################
|
||||||
|
# Define workspaces
|
||||||
|
set $workspace1 "1: "
|
||||||
|
set $workspace2 "2: "
|
||||||
|
set $workspace3 "3: "
|
||||||
|
set $workspace4 "4: "
|
||||||
|
set $workspace5 "5: "
|
||||||
|
set $workspace6 "6: "
|
||||||
|
set $workspace7 "7: "
|
||||||
|
set $workspace8 "8: "
|
||||||
|
set $workspace9 "9: "
|
||||||
|
set $workspace10 "10: "
|
||||||
|
|
||||||
|
# Assign workspaces to outputs
|
||||||
|
workspace $workspace1 output $output1
|
||||||
|
workspace $workspace2 output $output2
|
||||||
|
workspace $workspace3 output $output2
|
||||||
|
workspace $workspace4 output $output2
|
||||||
|
workspace $workspace5 output $output1
|
||||||
|
workspace $workspace6 output $output2
|
||||||
|
workspace $workspace7 output $output2
|
||||||
|
workspace $workspace8 output $output1
|
||||||
|
workspace $workspace9 output $output2
|
||||||
|
workspace $workspace10 output $output2
|
||||||
|
|
||||||
|
# Assign applications to workspaces
|
||||||
|
assign [class="Google-chrome-beta"] $workspace1
|
||||||
|
assign [instance="cmus"] $workspace10
|
||||||
|
assign [class="code-oss"] $workspace3
|
||||||
|
assign [class="Nemo"] $workspace4
|
||||||
|
assign [class="discord"] $workspace5
|
||||||
|
assign [class="Steam"] $workspace6
|
||||||
|
assign [class="keepassxc"] $workspace8
|
||||||
|
assign [class="vlc"] $workspace9
|
||||||
|
assign [class="mpv"] $workspace9
|
||||||
|
assign [class="Notable"] $workspace7
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Keybindings #
|
||||||
|
###############################################################################
|
||||||
|
# Start a terminal
|
||||||
|
bindsym $mod+Return exec termite -c ~/.config/termite/config
|
||||||
|
|
||||||
|
# Kill focused window
|
||||||
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
|
# Open run menu
|
||||||
|
bindsym $mod+R exec rofi -show run -lines 5
|
||||||
|
|
||||||
|
# Open game menu
|
||||||
|
bindsym $mod+G exec games
|
||||||
|
|
||||||
|
# Open power menu
|
||||||
|
bindsym $mod+F4 exec power
|
||||||
|
|
||||||
|
# Open screenshot menu
|
||||||
|
bindsym Print exec screenshot
|
||||||
|
|
||||||
|
# Change focus
|
||||||
|
bindsym $mod+Left focus left
|
||||||
|
bindsym $mod+H focus left
|
||||||
|
bindsym $mod+Down focus down
|
||||||
|
bindsym $mod+J focus down
|
||||||
|
bindsym $mod+Up focus up
|
||||||
|
bindsym $mod+K focus up
|
||||||
|
bindsym $mod+Right focus right
|
||||||
|
bindsym $mod+L focus right
|
||||||
|
|
||||||
|
# Move focused window
|
||||||
|
bindsym $mod+Shift+Left move left
|
||||||
|
bindsym $mod+Shift+H move left
|
||||||
|
bindsym $mod+Shift+Down move down
|
||||||
|
bindsym $mod+Shift+J move down
|
||||||
|
bindsym $mod+Shift+Up move up
|
||||||
|
bindsym $mod+Shift+K move up
|
||||||
|
bindsym $mod+Shift+Right move right
|
||||||
|
bindsym $mod+Shift+L move right
|
||||||
|
|
||||||
|
# Moving workspaces to other displays
|
||||||
|
bindsym $mod+$alt+Left move workspace to output left
|
||||||
|
bindsym $mod+$alt+H move workspace to output left
|
||||||
|
bindsym $mod+$alt+Right move workspace to output right
|
||||||
|
bindsym $mod+$alt+L move workspace to output right
|
||||||
|
|
||||||
|
# Toggle split orientation
|
||||||
|
bindsym $mod+T split toggle
|
||||||
|
|
||||||
|
# Fullscreen toggle
|
||||||
|
bindsym $mod+F11 fullscreen toggle
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
bindsym $mod+Shift+Space floating toggle
|
||||||
|
|
||||||
|
# Workspace switching
|
||||||
|
bindsym $mod+1 workspace $workspace1
|
||||||
|
bindsym $mod+KP_1 workspace $workspace1
|
||||||
|
bindsym $mod+2 workspace $workspace2
|
||||||
|
bindsym $mod+KP_2 workspace $workspace2
|
||||||
|
bindsym $mod+3 workspace $workspace3
|
||||||
|
bindsym $mod+KP_3 workspace $workspace3
|
||||||
|
bindsym $mod+4 workspace $workspace4
|
||||||
|
bindsym $mod+KP_4 workspace $workspace4
|
||||||
|
bindsym $mod+5 workspace $workspace5
|
||||||
|
bindsym $mod+KP_5 workspace $workspace5
|
||||||
|
bindsym $mod+6 workspace $workspace6
|
||||||
|
bindsym $mod+KP_6 workspace $workspace6
|
||||||
|
bindsym $mod+7 workspace $workspace7
|
||||||
|
bindsym $mod+KP_7 workspace $workspace7
|
||||||
|
bindsym $mod+8 workspace $workspace8
|
||||||
|
bindsym $mod+KP_8 workspace $workspace8
|
||||||
|
bindsym $mod+9 workspace $workspace9
|
||||||
|
bindsym $mod+KP_9 workspace $workspace9
|
||||||
|
bindsym $mod+0 workspace $workspace10
|
||||||
|
bindsym $mod+KP_0 workspace $workspace10
|
||||||
|
|
||||||
|
# Moving container to workspace
|
||||||
|
bindsym $mod+Shift+1 move container to workspace $workspace1
|
||||||
|
bindsym $mod+Shift+KP_1 move container to workspace $workspace1
|
||||||
|
bindsym $mod+Shift+2 move container to workspace $workspace2
|
||||||
|
bindsym $mod+Shift+KP_2 move container to workspace $workspace2
|
||||||
|
bindsym $mod+Shift+3 move container to workspace $workspace3
|
||||||
|
bindsym $mod+Shift+KP_3 move container to workspace $workspace3
|
||||||
|
bindsym $mod+Shift+4 move container to workspace $workspace4
|
||||||
|
bindsym $mod+Shift+KP_4 move container to workspace $workspace4
|
||||||
|
bindsym $mod+Shift+5 move container to workspace $workspace5
|
||||||
|
bindsym $mod+Shift+KP_5 move container to workspace $workspace5
|
||||||
|
bindsym $mod+Shift+6 move container to workspace $workspace6
|
||||||
|
bindsym $mod+Shift+KP_6 move container to workspace $workspace6
|
||||||
|
bindsym $mod+Shift+7 move container to workspace $workspace7
|
||||||
|
bindsym $mod+Shift+KP_7 move container to workspace $workspace7
|
||||||
|
bindsym $mod+Shift+8 move container to workspace $workspace8
|
||||||
|
bindsym $mod+Shift+KP_8 move container to workspace $workspace8
|
||||||
|
bindsym $mod+Shift+9 move container to workspace $workspace9
|
||||||
|
bindsym $mod+Shift+KP_9 move container to workspace $workspace9
|
||||||
|
bindsym $mod+Shift+0 move container to workspace $workspace10
|
||||||
|
bindsym $mod+Shift+KP_0 move container to workspace $workspace10
|
||||||
|
|
||||||
|
# Restart i3
|
||||||
|
bindsym $mod+Shift+r restart
|
||||||
|
|
||||||
|
# resize window (you can also use the mouse for that)
|
||||||
|
mode "resize" {
|
||||||
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
|
||||||
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym Down resize grow height 10 px or 10 ppt
|
||||||
|
bindsym Up resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym Right resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# back to normal: Enter or Escape
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
bindsym $mod+x mode "resize"
|
||||||
|
|
||||||
|
# Screen lock controls
|
||||||
|
bindsym XF86Sleep exec --no-startup-id screenlock
|
||||||
|
|
||||||
|
# Volume controls
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id pamixer -t
|
||||||
|
bindsym $mod+m exec --no-startup-id pamixer -t
|
||||||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id increase-volume
|
||||||
|
bindsym $mod+KP_Add exec --no-startup-id increase-volume
|
||||||
|
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 --allow-boost
|
||||||
|
bindsym $mod+KP_Subtract exec --no-startup-id pamixer -d 5 --allow-boost
|
||||||
|
|
||||||
|
# Brightness controls
|
||||||
|
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
|
||||||
|
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
|
||||||
|
|
||||||
|
# Music controls
|
||||||
|
bindsym XF86AudioStop exec --no-startup-id cmus-remote -s
|
||||||
|
bindsym XF86AudioPlay exec --no-startup-id cmus-remote -u
|
||||||
|
bindsym $mod+KP_Enter exec --no-startup-id cmus-remote -u
|
||||||
|
bindsym XF86AudioNext exec --no-startup-id cmus-remote -n
|
||||||
|
bindsym $mod+Control+Right exec --no-startup-id cmus-remote -n
|
||||||
|
bindsym XF86AudioPrev exec --no-startup-id cmus-remote -r
|
||||||
|
bindsym $mod+Control+Left exec --no-startup-id cmus-remote -r
|
||||||
|
|
||||||
|
|
||||||
|
exec --no-startup-id "i3-msg 'workspace 10: ; \
|
||||||
|
append_layout /home/severin/.config/i3/workspace-10.json; \
|
||||||
|
exec termite -e cmus --name cmus; \
|
||||||
|
exec termite -e cava --name cava; \
|
||||||
|
exec sxiv -b -s f $HOME/.local/share/cmus/.cover'"
|
||||||
|
|
||||||
|
|
||||||
|
exec --no-startup-id "i3-msg 'workspace 2: ; \
|
||||||
|
append_layout /home/severin/.config/i3/workspace-2.json; \
|
||||||
|
exec termite; \
|
||||||
|
exec termite; \
|
||||||
|
exec termite; \
|
||||||
|
exec termite'"
|
||||||
|
|
||||||
|
exec --no-startup-id "i3-msg 'workspace 1: '"
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Startup applications #
|
||||||
|
###############################################################################
|
||||||
|
# Start compton
|
||||||
|
exec --no-startup-id compton -b
|
||||||
|
|
||||||
|
# Start polybar
|
||||||
|
exec_always --no-startup-id $XDG_CONFIG_HOME/polybar/launch
|
||||||
|
|
||||||
|
# Start dunst
|
||||||
|
exec --no-startup-id dunst
|
||||||
|
|
||||||
|
# Set resolution
|
||||||
|
exec_always --no-startup-id resolution
|
||||||
|
|
||||||
|
# Set wallpaper
|
||||||
|
exec_always --no-startup-id wallpaper
|
||||||
|
|
||||||
|
# Other applications
|
||||||
|
exec autokey-gtk
|
||||||
|
exec google-chrome-beta
|
||||||
|
|
||||||
|
exec discord
|
||||||
|
exec nemo
|
||||||
|
exec nemo
|
||||||
|
exec keepassxc
|
||||||
|
exec notable
|
5
system/.config/i3/config.intel
Normal file
5
system/.config/i3/config.intel
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
###############################################################################
|
||||||
|
# Outputs #
|
||||||
|
###############################################################################
|
||||||
|
set $output1 HDMI1
|
||||||
|
set $output2 eDP1
|
5
system/.config/i3/config.nvidia
Normal file
5
system/.config/i3/config.nvidia
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
###############################################################################
|
||||||
|
# Outputs #
|
||||||
|
###############################################################################
|
||||||
|
set $output1 HDMI-1-1
|
||||||
|
set $output2 eDP-1-1
|
|
@ -23,7 +23,7 @@ bar-height = 35
|
||||||
# Top bar
|
# Top bar
|
||||||
#######################################
|
#######################################
|
||||||
[bar/top]
|
[bar/top]
|
||||||
monitor = HDMI-1
|
monitor = HDMI1
|
||||||
|
|
||||||
width = 100%
|
width = 100%
|
||||||
height = ${settings.bar-height}
|
height = ${settings.bar-height}
|
||||||
|
@ -52,7 +52,7 @@ scroll-down = i3wm-deskprev
|
||||||
|
|
||||||
[bar/top2]
|
[bar/top2]
|
||||||
inherit = bar/top
|
inherit = bar/top
|
||||||
monitor = eDP-1
|
monitor = eDP1
|
||||||
|
|
||||||
[bar/top-nvidia]
|
[bar/top-nvidia]
|
||||||
inherit = bar/top
|
inherit = bar/top
|
||||||
|
@ -76,16 +76,18 @@ tray-position = none
|
||||||
|
|
||||||
[bar/bottom2]
|
[bar/bottom2]
|
||||||
inherit = bar/bottom
|
inherit = bar/bottom
|
||||||
monitor = eDP-1
|
monitor = eDP1
|
||||||
tray-position = left
|
tray-position = left
|
||||||
|
|
||||||
[bar/bottom-nvidia]
|
[bar/bottom-nvidia]
|
||||||
inherit = bar/bottom
|
inherit = bar/bottom
|
||||||
monitor = HDMI-1-1
|
monitor = HDMI-1-1
|
||||||
|
tray-position = none
|
||||||
|
|
||||||
[bar/bottom2-nvidia]
|
[bar/bottom2-nvidia]
|
||||||
inherit = bar/bottom
|
inherit = bar/bottom
|
||||||
monitor = eDP-1-1
|
monitor = eDP-1-1
|
||||||
|
tray-position = left
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
|
@ -167,16 +169,13 @@ click-left = xdg-open https://mail.google.com
|
||||||
###############################################################################
|
###############################################################################
|
||||||
[module/todo]
|
[module/todo]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = echo "$(${XDG_BIN_HOME}/todo | wc -l) / 3" | bc
|
exec = task count due.before:tomorrow and status:pending or due: and status:pending
|
||||||
|
|
||||||
format = <label>
|
format = <label>
|
||||||
label = %output%
|
label = %output%
|
||||||
|
|
||||||
interval = 60
|
interval = 60
|
||||||
|
|
||||||
click-left = xdg-open "https://todoist.com/"
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Battery indicator #
|
# Battery indicator #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
32
system/.config/task/taskrc
Normal file
32
system/.config/task/taskrc
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# [Created by task 2.5.1 3/24/2019 19:33:29]
|
||||||
|
# Taskwarrior program configuration file.
|
||||||
|
# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color',
|
||||||
|
# 'man task-sync' or 'man taskrc'
|
||||||
|
|
||||||
|
# Here is an example of entries that use the default, override and blank values
|
||||||
|
# variable=foo -- By specifying a value, this overrides the default
|
||||||
|
# variable= -- By specifying no value, this means no default
|
||||||
|
# #variable=foo -- By commenting out the line, or deleting it, this uses the default
|
||||||
|
|
||||||
|
# Use the command 'task show' to see all defaults and overrides
|
||||||
|
|
||||||
|
# Files
|
||||||
|
data.location=/home/severin/Tasks
|
||||||
|
verbose=blank,footnote,label,new-id,affected,edit,special,project,sync,unwait
|
||||||
|
|
||||||
|
report.todo.description=Tasks with now due date, overdue or due in the next 7 days
|
||||||
|
report.todo.columns=id,due,project,description.count
|
||||||
|
report.todo.labels=ID,Due,Project,Description
|
||||||
|
report.todo.sort=due+
|
||||||
|
report.todo.filter=due.before:1wk and status:pending or due: and status:pending
|
||||||
|
color=on
|
||||||
|
color.uda.priority.H=
|
||||||
|
color.uda.priority.L=
|
||||||
|
color.uda.priority.M=
|
||||||
|
color.overdue=
|
||||||
|
color.scheduled=
|
||||||
|
color.recurring=
|
||||||
|
color.due=
|
||||||
|
color.due.today=
|
||||||
|
dateformat=Y-M-D H:N
|
||||||
|
|
|
@ -20,7 +20,7 @@ allow_bold = true
|
||||||
dynamic_title = true
|
dynamic_title = true
|
||||||
urgent_on_bell = false
|
urgent_on_bell = false
|
||||||
clickable_url = true
|
clickable_url = true
|
||||||
font = Hack 10
|
font = Fira Mono 11
|
||||||
scrollback_lines = 1000
|
scrollback_lines = 1000
|
||||||
search_wrap = true
|
search_wrap = true
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
# Zsh options
|
# Zsh options
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
setopt extendedglob
|
|
||||||
unsetopt correct
|
unsetopt correct
|
||||||
|
|
||||||
|
|
||||||
# Zsh keybindings
|
# Zsh keybindings
|
||||||
bindkey "\e[H" beginning-of-line
|
bindkey "\e[H" beginning-of-line
|
||||||
bindkey "\e[F" end-of-line
|
bindkey "\e[F" end-of-line
|
||||||
|
|
|
@ -32,7 +32,7 @@ case "${SELECTION}" in
|
||||||
gw2
|
gw2
|
||||||
;;
|
;;
|
||||||
"3")
|
"3")
|
||||||
java minecraft-launcher
|
minecraft-launcher
|
||||||
;;
|
;;
|
||||||
"4")
|
"4")
|
||||||
pegasus-fe
|
pegasus-fe
|
||||||
|
|
|
@ -19,9 +19,10 @@ PROMPT="Power Options"
|
||||||
ACTIONS=(
|
ACTIONS=(
|
||||||
"1: Reboot"
|
"1: Reboot"
|
||||||
"2: Shutdown"
|
"2: Shutdown"
|
||||||
"3: Lock Screen"
|
"3: Suspend"
|
||||||
"4: Performance Mode"
|
"4: Lock Screen"
|
||||||
"5: Powersave Mode"
|
"5: Performance Mode"
|
||||||
|
"6: Powersave Mode"
|
||||||
)
|
)
|
||||||
|
|
||||||
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
|
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
|
||||||
|
@ -33,13 +34,16 @@ case "${SELECTION}" in
|
||||||
systemctl poweroff
|
systemctl poweroff
|
||||||
;;
|
;;
|
||||||
"3")
|
"3")
|
||||||
screenlock
|
systemctl suspend
|
||||||
;;
|
;;
|
||||||
"4")
|
"4")
|
||||||
|
screenlock
|
||||||
|
;;
|
||||||
|
"5")
|
||||||
gksudo "cpupower frequency-set -g performance"
|
gksudo "cpupower frequency-set -g performance"
|
||||||
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2' -c :8 > /dev/null
|
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2' -c :8 > /dev/null
|
||||||
;;
|
;;
|
||||||
"5")
|
"6")
|
||||||
gksudo "cpupower frequency-set -g powersave"
|
gksudo "cpupower frequency-set -g powersave"
|
||||||
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=0' -c :8 > /dev/null
|
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=0' -c :8 > /dev/null
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# ./resolution
|
# ./resolution
|
||||||
xrandr \
|
xrandr \
|
||||||
--dpi 96 \
|
--dpi 96 \
|
||||||
--output HDMI-1 --mode 1280x1024 --pos 80x56 --rotate normal \
|
--output HDMI1 --mode 1280x1024 --pos 80x56 --rotate normal \
|
||||||
--output HDMI-1-1 --mode 1280x1024 --pos 80x56 --rotate normal \
|
--output HDMI-1-1 --mode 1280x1024 --pos 80x56 --rotate normal \
|
||||||
--output eDP-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
|
--output eDP1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
|
||||||
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal
|
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
# Severin Kaderli <severin@kaderli.dev>
|
# Severin Kaderli <severin@kaderli.dev>
|
||||||
#
|
#
|
||||||
# DESCRIPTION:
|
# DESCRIPTION:
|
||||||
# This script locks the screen using i3lock-fancy. This script is called
|
# This script locks the screen using betterlockscreen. This script is called
|
||||||
# using a custom i3 keybinding.
|
# using a custom i3 keybinding.
|
||||||
#
|
#
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# ./screenlock
|
# ./screenlock
|
||||||
i3lock-fancy -f "Noto Sans"
|
betterlockscreen -l blur -t "Welcome back, Severin!"
|
22
system/.local/bin/sync-tasks
Executable file
22
system/.local/bin/sync-tasks
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# SCRIPT NAME:
|
||||||
|
# sync-tasks
|
||||||
|
#
|
||||||
|
# AUTHOR:
|
||||||
|
# Severin Kaderli <severin@kaderli.dev>
|
||||||
|
#
|
||||||
|
# DESCRIPTION:
|
||||||
|
# Sync tasks in ~/Tasks using git
|
||||||
|
#
|
||||||
|
# USAGE:
|
||||||
|
# ./sync-tasks
|
||||||
|
. /home/severin/.local/bin/utils
|
||||||
|
|
||||||
|
print_time_log "sync-tasks" "Synchronizing tasks"
|
||||||
|
|
||||||
|
cd "/home/severin/Tasks" || exit
|
||||||
|
git pull > /dev/null 2>&1
|
||||||
|
git add --all > /dev/null 2>&1
|
||||||
|
git commit -s -m "Update tasks" > /dev/null 2>&1
|
||||||
|
git push origin master > /dev/null 2>&1
|
14
system/etc/systemd/system/suspend.service
Normal file
14
system/etc/systemd/system/suspend.service
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=User suspend actions
|
||||||
|
Before=suspend.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=severin
|
||||||
|
Type=forking
|
||||||
|
Environment=DISPLAY=:0
|
||||||
|
ExecStart=/home/severin/.local/bin/screenlock
|
||||||
|
ExecStartPost=/usr/bin/sleep 1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sleep.target
|
Loading…
Add table
Add a link
Reference in a new issue