From 923ec7c6aaad53fb190eca40ee23f5ee3e08e1dd Mon Sep 17 00:00:00 2001 From: NaiJi Date: Tue, 23 Apr 2024 06:08:02 +0400 Subject: [PATCH] huge stuff --- .../autostart/org.keepassxc.KeePassXC.desktop | 17 ------ .config/i3/config | 58 ++++++++----------- .config/ncmpcpp/config | 2 +- .config/nvim/init.lua | 2 +- .../user/default.target.wants/mpd.service | 1 + .config/tmux/tmux.conf | 0 .config/user-dirs.dirs | 15 +++++ .config/user-dirs.locale | 1 + .dmrc | 2 + .gitignore | 31 ++++++++++ 10 files changed, 77 insertions(+), 52 deletions(-) delete mode 100644 .config/autostart/org.keepassxc.KeePassXC.desktop create mode 120000 .config/systemd/user/default.target.wants/mpd.service create mode 100644 .config/tmux/tmux.conf create mode 100644 .config/user-dirs.dirs create mode 100644 .config/user-dirs.locale create mode 100644 .dmrc diff --git a/.config/autostart/org.keepassxc.KeePassXC.desktop b/.config/autostart/org.keepassxc.KeePassXC.desktop deleted file mode 100644 index c6e4654..0000000 --- a/.config/autostart/org.keepassxc.KeePassXC.desktop +++ /dev/null @@ -1,17 +0,0 @@ -[Desktop Entry] -Name=KeePassXC -GenericName=Password Manager -Exec=keepassxc -TryExec=keepassxc -Icon=keepassxc -StartupWMClass=keepassxc -StartupNotify=true -Terminal=false -Type=Application -Version=1.0 -Categories=Utility;Security;Qt; -MimeType=application/x-keepass2; -X-GNOME-Autostart-enabled=true -X-GNOME-Autostart-Delay=2 -X-KDE-autostart-after=panel -X-LXQt-Need-Tray=true diff --git a/.config/i3/config b/.config/i3/config index 809ddf1..daa97ff 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -22,16 +22,13 @@ font pango:DejaVu Sans Mono 8 # https://wiki.archlinux.org/index.php/XDG_Autostart exec --no-startup-id dex --autostart --environment i3 -# launch categorized menu -bindsym $mod+z exec --no-startup-id morc_menu - # control mpd -bindsym $mod+k exec --no-startup-id mpc prev && notify-send -e -t 800 -i music "Now playing" "$(mpc | head -n 1)" -bindsym $mod+l exec --no-startup-id mpc next && notify-send -e -t 800 -i music "Now playing" "$(mpc | head -n 1)" -bindsym $mod+m exec --no-startup-id mpc toggle -bindsym $mod+p exec --no-startup-id mpc volume +5 -bindsym $mod+o exec --no-startup-id mpc volume -5 -bindsym $mod+j exec --no-startup-id alacritty -e ncmpcpp +bindsym $mod+Left exec --no-startup-id mpc prev && notify-send -e -t 800 -i music "Now playing" "$(mpc | head -n 1)" +bindsym $mod+Right exec --no-startup-id mpc next && notify-send -e -t 800 -i music "Now playing" "$(mpc | head -n 1)" +bindsym $mod+p exec --no-startup-id mpc toggle +bindsym $mod+Up exec --no-startup-id mpc volume +5 +bindsym $mod+Down exec --no-startup-id mpc volume -5 +bindsym $mod+o exec --no-startup-id alacritty -e ncmpcpp # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. @@ -71,22 +68,19 @@ bindsym $mod+d exec --no-startup-id dmenu_run # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right # alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right # split in vertical orientation -bindsym $mod+v split v +bindsym $mod+v split toggle # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle @@ -106,7 +100,7 @@ bindsym $mod+space focus mode_toggle bindsym $mod+a focus parent # focus the child container -#bindsym $mod+d focus child +bindsym $mod+Shift+a focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. @@ -149,24 +143,22 @@ bindsym $mod+Shift+e exec "i3-msg exit" exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec --no-startup-id pamac-tray -exec --no-startup-id keepassxc exec --no-startup-id qbittorrent exec_always --no-startup-id ff-theme-util exec_always --no-startup-id fix_xcursor +exec --no-startud-id element-desktop +exec --no-startud-id telegram-desktop +exec --no-startud-id slack + exec_always xwallpaper --no-randr --maximize /usr/share/backgrounds/wallpaper.png -#navigate workspaces next / previous -bindsym $mod+Ctrl+x workspace next -bindsym $mod+Ctrl+z workspace prev - # Resizing windows by 10 in i3 using keyboard only -bindsym $mod+Ctrl+Right resize shrink width 5 px or 5 ppt -bindsym $mod+Ctrl+Up resize grow height 5 px or 5 ppt -bindsym $mod+Ctrl+Down resize shrink height 5 px or 5 ppt -bindsym $mod+Ctrl+Left resize grow width 5 px or 5 ppt +bindsym $mod+Ctrl+l resize shrink width 5 px or 5 ppt +bindsym $mod+Ctrl+k resize grow height 5 px or 5 ppt +bindsym $mod+Ctrl+j resize shrink height 5 px or 5 ppt +bindsym $mod+Ctrl+h resize grow width 5 px or 5 ppt -bindsym $mod+Ctrl+b exec terminal -e 'bmenu' bindsym $mod+F2 exec firefox bindsym $mod+F3 exec pcmanfm bindsym $mod+F4 exec alacritty -e newsboat @@ -230,7 +222,7 @@ mode "$mode_ffmpeg" { bindsym $mod+Shift+M mode "$mode_music" set $mode_music (u)pdate music, (s)ingle, (r)andom, r(e)peat mode "$mode_music" { - bindsym u exec /home/naiji/.local/bin/media-util mpc update, mode "default" + bindsym u exec //home/naiji/.local/bin/media-util mpc update && home/naiji/.local/bin/media-util mpc update, mode "default" bindsym s exec /home/naiji/.local/bin/media-util mpc single && notify-send -e -t 1000 -i music "Single mode" "$(mpc status %single%)", mode "default" bindsym r exec /home/naiji/.local/bin/media-util mpc random && notify-send -e -t 1000 -i music "Random mode" "$(mpc status %random%)", mode "default" bindsym e exec /home/naiji/.local/bin/media-util mpc repeat && notify-send -e -t 1000 -i music "Repeat mode" "$(mpc status %repeat%)", mode "default" diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config index 06ae3ed..c8bb3cc 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -4,7 +4,7 @@ ignore_leading_the = "yes" ignore_diacritics = "yes" default_place_to_search_in = "database" visualizer_type = ellipse - +startup_slave_screen = visualizer ## Display Modes ## playlist_editor_display_mode = "columns" search_engine_display_mode = "columns" diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 4d3eba9..f5fbfc2 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -38,7 +38,7 @@ vim.opt.smartcase = true -- Keep signcolumn on by default vim.opt.signcolumn = "yes" - +vim.opt.autoindent = true -- Decrease update time vim.opt.updatetime = 250 diff --git a/.config/systemd/user/default.target.wants/mpd.service b/.config/systemd/user/default.target.wants/mpd.service new file mode 120000 index 0000000..0524f66 --- /dev/null +++ b/.config/systemd/user/default.target.wants/mpd.service @@ -0,0 +1 @@ +/usr/lib/systemd/user/mpd.service \ No newline at end of file diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..e69de29 diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs new file mode 100644 index 0000000..7f9a959 --- /dev/null +++ b/.config/user-dirs.dirs @@ -0,0 +1,15 @@ +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME/Desktop" +XDG_DOWNLOAD_DIR="$HOME/Downloads" +XDG_TEMPLATES_DIR="$HOME/Templates" +XDG_PUBLICSHARE_DIR="$HOME/Public" +XDG_DOCUMENTS_DIR="$HOME/Documents" +XDG_MUSIC_DIR="$HOME/Music" +XDG_PICTURES_DIR="$HOME/Pictures" +XDG_VIDEOS_DIR="$HOME/Videos" diff --git a/.config/user-dirs.locale b/.config/user-dirs.locale new file mode 100644 index 0000000..3e0b419 --- /dev/null +++ b/.config/user-dirs.locale @@ -0,0 +1 @@ +en_US \ No newline at end of file diff --git a/.dmrc b/.dmrc new file mode 100644 index 0000000..22a9951 --- /dev/null +++ b/.dmrc @@ -0,0 +1,2 @@ +[Desktop] +Session=i3 diff --git a/.gitignore b/.gitignore index dcd1be9..9e213b4 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,34 @@ Videos/ .vscode-oss/ .bash_history* .npmrc +.config/Code\ -\ OSS/ +.config/Electron/ +.config/Element/ +.config/MusicBrainz/ +.config/QtProject.conf +.config/Slack/ +.config/audacity/ +.config/cef_user_data/ +.config/dconf/ +.config/flutter/ +.config/keepassxc/ +.config/kritadisplayrc +.config/kritarc +.config/libfm +.config/mpd/database +.config/mpd/mpd.log +.config/mpd/state +.config/mpd/sticker.sql +.config/ncmpcpp/error.log +.config/nvim/lazy-lock.json +.config/qBittorrent/categories.json +.config/qBittorrent/lockfile +.config/qBittorrent/qBittorrent-data.conf +.config/qBittorrent/qBittorrent.conf +.config/qBittorrent/rss/ +.config/qBittorrent/watched_folders.json +.flutter +.dotnet/ +.pki/ +.pulse-cookie +.wget-hsts