diff --git a/.config/i3/config b/.config/i3/config index 24bd058..53ea6dd 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -55,6 +55,8 @@ floating_modifier $mod # start a terminal bindsym $mod+Return exec alacritty +bindsym $mod+Shift+Return exec alacritty -e tmux a +bindsym $mod+Ctrl+Return exec alacritty -e tmux # kill focused window bindsym $mod+Shift+q kill @@ -151,7 +153,7 @@ exec --no-startup-id element-desktop exec --no-startup-id telegram-desktop exec --no-startup-id slack -exec_always xwallpaper --no-randr --maximize /usr/share/backgrounds/wallpaper.png +exec_always xwallpaper --no-randr --maximize /home/naiji/.local/share/backgrounds/wallpaper.png # Resizing windows by 10 in i3 using keyboard only bindsym $mod+Ctrl+l resize shrink width 5 px or 5 ppt @@ -197,7 +199,7 @@ bar { bindsym $mod+0 mode "$mode_system" set $mode_system (l)ock, (e)xit, (s)uspend, (r)eboot, (Shift+s)hutdown mode "$mode_system" { - bindsym l exec i3lock -i /usr/share/backgrounds/wallpaper.png, mode "default" + bindsym l exec i3lock -i /home/naiji/.local/share/backgrounds/wallpaper.png, mode "default" bindsym s exec --no-startup-id i3exit suspend, mode "default" bindsym e exec --no-startup-id i3exit logout, mode "default" bindsym r exec --no-startup-id i3exit reboot, mode "default" diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 7d72b7e..54d0737 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -4,6 +4,7 @@ image/jpeg=nsxiv.desktop image/webp=nsxiv.desktop image/gif=nsxiv.desktop audio/flac=mpv.desktop +application/pdf=org.pwmt.zathura-pdf-mupdf.desktop [Added Associations] image/png=nsxiv.desktop; @@ -12,3 +13,4 @@ image/jpeg=nsxiv.desktop; image/gif=nsxiv.desktop; audio/flac=mpv.desktop; inode/directory=mpv.desktop; +application/pdf=org.pwmt.zathura-pdf-mupdf.desktop; diff --git a/.gitignore b/.gitignore index fdbe992..061aa87 100644 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,6 @@ Videos/ .freetalk/ .gnupg/ .icons/ -.local/share/ .local/state/ .mono/ .mozilla/ diff --git a/.local/bin/set-backgrounds b/.local/bin/set-backgrounds new file mode 100755 index 0000000..1e910b8 --- /dev/null +++ b/.local/bin/set-backgrounds @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir -p ~/.local/ +mkdir -p ~/.local/share/ +mkdir -p ~/.local/share/backgrounds/ + +convert $1 ~/.local/share/backgrounds/full.png +magick ~/.local/share/backgrounds/full.png -resize $(xrandr | grep '*' | cut -f 1 -d x)x$(xrandr | grep '*' | cut -f 2 -d x | cut -f 1 -d ' ')^ ~/.local/share/backgrounds/wallpaper.png +xwallpaper --zoom ~/.local/share/backgrounds/wallpaper.png + +sudo mkdir -p /usr/share/backgrounds/ +sudo cp ~/.local/share/backgrounds/wallpaper.png /usr/share/backgrounds/wallpaper.png diff --git a/.local/share/backgrounds/full.png b/.local/share/backgrounds/full.png new file mode 100644 index 0000000..d7fa646 Binary files /dev/null and b/.local/share/backgrounds/full.png differ diff --git a/.local/share/backgrounds/wallpaper.png b/.local/share/backgrounds/wallpaper.png new file mode 100644 index 0000000..b77c08a Binary files /dev/null and b/.local/share/backgrounds/wallpaper.png differ