From 73e31b79de25298a519671ef8b6c2ab68af9c87e Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sat, 20 Jul 2024 20:18:30 +0400 Subject: directory layout changed --- distros/arch-linux/pacman.conf | 23 + dotfiles/Xresources | 34 + dotfiles/alacritty/alacritty.toml | 43 + dotfiles/bspwm/bspwmrc | 43 + dotfiles/dunst/dunstrc | 33 + dotfiles/i3/config | 215 + dotfiles/kitty/kitty.conf | 62 + dotfiles/lf/lfrc | 44 + dotfiles/mimeapps.list | 17 + dotfiles/mpv/input.conf | 5 + dotfiles/nsxiv/exec/key-handler | 43 + dotfiles/nvim/init.lua | 2 + dotfiles/nvim/lua/master/init.lua | 7 + dotfiles/nvim/lua/master/packer.lua | 39 + dotfiles/nvim/lua/master/plugins/comment.lua | 28 + dotfiles/nvim/lua/master/plugins/gruvbox.lua | 27 + dotfiles/nvim/lua/master/plugins/neotree.lua | 34 + .../nvim/lua/master/plugins/nvim-autopairs.lua | 6 + dotfiles/nvim/lua/master/plugins/toggleterm.lua | 13 + dotfiles/nvim/lua/master/vim_settings.lua | 42 + dotfiles/picom/picom.conf | 25 + dotfiles/polybar/config.ini | 168 + dotfiles/polybar/launch.sh | 14 + dotfiles/qutebrowser/autoconfig.yml | 25 + dotfiles/qutebrowser/bookmarks/urls | 2 + dotfiles/qutebrowser/config.py | 303 ++ dotfiles/qutebrowser/startpage/.gitignore | 1 + dotfiles/qutebrowser/startpage/css/main.css | 204 + .../fonts/woff/JetBrainsMono-Bold-Italic.woff | Bin 0 -> 68104 bytes .../startpage/fonts/woff/JetBrainsMono-Bold.woff | Bin 0 -> 63612 bytes .../fonts/woff/JetBrainsMono-ExtraBold-Italic.woff | Bin 0 -> 67208 bytes .../fonts/woff/JetBrainsMono-ExtraBold.woff | Bin 0 -> 62548 bytes .../startpage/fonts/woff/JetBrainsMono-Italic.woff | Bin 0 -> 65576 bytes .../fonts/woff/JetBrainsMono-Medium-Italic.woff | Bin 0 -> 67700 bytes .../startpage/fonts/woff/JetBrainsMono-Medium.woff | Bin 0 -> 63404 bytes .../fonts/woff/JetBrainsMono-Regular.woff | Bin 0 -> 62260 bytes .../fonts/woff2/JetBrainsMono-Bold-Italic.woff2 | Bin 0 -> 53364 bytes .../startpage/fonts/woff2/JetBrainsMono-Bold.woff2 | Bin 0 -> 49892 bytes .../woff2/JetBrainsMono-ExtraBold-Italic.woff2 | Bin 0 -> 52196 bytes .../fonts/woff2/JetBrainsMono-ExtraBold.woff2 | Bin 0 -> 48952 bytes .../fonts/woff2/JetBrainsMono-Italic.woff2 | Bin 0 -> 50936 bytes .../fonts/woff2/JetBrainsMono-Medium-Italic.woff2 | Bin 0 -> 52928 bytes .../fonts/woff2/JetBrainsMono-Medium.woff2 | Bin 0 -> 49592 bytes .../fonts/woff2/JetBrainsMono-Regular.woff2 | Bin 0 -> 48700 bytes dotfiles/qutebrowser/startpage/index.html | 16 + dotfiles/sxhkd/sxhkdrc | 105 + dotfiles/zathura/zathurarc | 48 + dotfiles/zsh/zshrc | 97 + etc/linux_kernel_config | 5694 ++++++++++++++++++++ etc/profile | 10 + etc/profile.d/theion.sh | 43 + scripts/border | 5 + scripts/gap | 3 + scripts/nocomment | 6 + scripts/nospac | 5 + scripts/sBrightness | 13 + scripts/sScreenshot | 7 + scripts/sTouchpad | 15 + scripts/sVolume | 11 + scripts/setwp | 18 + src/distros/arch-linux/pacman.conf | 23 - src/dotfiles/Xresources | 34 - src/dotfiles/alacritty/alacritty.toml | 43 - src/dotfiles/bspwm/bspwmrc | 43 - src/dotfiles/dunst/dunstrc | 33 - src/dotfiles/i3/config | 215 - src/dotfiles/kitty/kitty.conf | 62 - src/dotfiles/lf/lfrc | 44 - src/dotfiles/mimeapps.list | 17 - src/dotfiles/mpv/input.conf | 5 - src/dotfiles/nsxiv/exec/key-handler | 43 - src/dotfiles/nvim/init.lua | 2 - src/dotfiles/nvim/lua/master/init.lua | 7 - src/dotfiles/nvim/lua/master/packer.lua | 39 - src/dotfiles/nvim/lua/master/plugins/comment.lua | 28 - src/dotfiles/nvim/lua/master/plugins/gruvbox.lua | 27 - src/dotfiles/nvim/lua/master/plugins/neotree.lua | 34 - .../nvim/lua/master/plugins/nvim-autopairs.lua | 6 - .../nvim/lua/master/plugins/toggleterm.lua | 13 - src/dotfiles/nvim/lua/master/vim_settings.lua | 42 - src/dotfiles/picom/picom.conf | 25 - src/dotfiles/polybar/config.ini | 168 - src/dotfiles/polybar/launch.sh | 14 - src/dotfiles/qutebrowser/autoconfig.yml | 25 - src/dotfiles/qutebrowser/bookmarks/urls | 2 - src/dotfiles/qutebrowser/config.py | 303 -- src/dotfiles/qutebrowser/startpage/.gitignore | 1 - src/dotfiles/qutebrowser/startpage/css/main.css | 204 - .../fonts/woff/JetBrainsMono-Bold-Italic.woff | Bin 68104 -> 0 bytes .../startpage/fonts/woff/JetBrainsMono-Bold.woff | Bin 63612 -> 0 bytes .../fonts/woff/JetBrainsMono-ExtraBold-Italic.woff | Bin 67208 -> 0 bytes .../fonts/woff/JetBrainsMono-ExtraBold.woff | Bin 62548 -> 0 bytes .../startpage/fonts/woff/JetBrainsMono-Italic.woff | Bin 65576 -> 0 bytes .../fonts/woff/JetBrainsMono-Medium-Italic.woff | Bin 67700 -> 0 bytes .../startpage/fonts/woff/JetBrainsMono-Medium.woff | Bin 63404 -> 0 bytes .../fonts/woff/JetBrainsMono-Regular.woff | Bin 62260 -> 0 bytes .../fonts/woff2/JetBrainsMono-Bold-Italic.woff2 | Bin 53364 -> 0 bytes .../startpage/fonts/woff2/JetBrainsMono-Bold.woff2 | Bin 49892 -> 0 bytes .../woff2/JetBrainsMono-ExtraBold-Italic.woff2 | Bin 52196 -> 0 bytes .../fonts/woff2/JetBrainsMono-ExtraBold.woff2 | Bin 48952 -> 0 bytes .../fonts/woff2/JetBrainsMono-Italic.woff2 | Bin 50936 -> 0 bytes .../fonts/woff2/JetBrainsMono-Medium-Italic.woff2 | Bin 52928 -> 0 bytes .../fonts/woff2/JetBrainsMono-Medium.woff2 | Bin 49592 -> 0 bytes .../fonts/woff2/JetBrainsMono-Regular.woff2 | Bin 48700 -> 0 bytes src/dotfiles/qutebrowser/startpage/index.html | 16 - src/dotfiles/sxhkd/sxhkdrc | 105 - src/dotfiles/zathura/zathurarc | 48 - src/dotfiles/zsh/zshrc | 97 - src/etc/linux_kernel_config | 5694 -------------------- src/etc/profile | 10 - src/etc/profile.d/theion.sh | 43 - src/scripts/border | 5 - src/scripts/gap | 3 - src/scripts/nocomment | 6 - src/scripts/nospac | 5 - src/scripts/sBrightness | 13 - src/scripts/sScreenshot | 7 - src/scripts/sTouchpad | 15 - src/scripts/sVolume | 11 - src/scripts/setwp | 18 - 120 files changed, 7598 insertions(+), 7598 deletions(-) create mode 100644 distros/arch-linux/pacman.conf create mode 100644 dotfiles/Xresources create mode 100644 dotfiles/alacritty/alacritty.toml create mode 100755 dotfiles/bspwm/bspwmrc create mode 100644 dotfiles/dunst/dunstrc create mode 100755 dotfiles/i3/config create mode 100644 dotfiles/kitty/kitty.conf create mode 100644 dotfiles/lf/lfrc create mode 100644 dotfiles/mimeapps.list create mode 100644 dotfiles/mpv/input.conf create mode 100755 dotfiles/nsxiv/exec/key-handler create mode 100644 dotfiles/nvim/init.lua create mode 100644 dotfiles/nvim/lua/master/init.lua create mode 100644 dotfiles/nvim/lua/master/packer.lua create mode 100644 dotfiles/nvim/lua/master/plugins/comment.lua create mode 100644 dotfiles/nvim/lua/master/plugins/gruvbox.lua create mode 100644 dotfiles/nvim/lua/master/plugins/neotree.lua create mode 100644 dotfiles/nvim/lua/master/plugins/nvim-autopairs.lua create mode 100644 dotfiles/nvim/lua/master/plugins/toggleterm.lua create mode 100644 dotfiles/nvim/lua/master/vim_settings.lua create mode 100644 dotfiles/picom/picom.conf create mode 100755 dotfiles/polybar/config.ini create mode 100755 dotfiles/polybar/launch.sh create mode 100755 dotfiles/qutebrowser/autoconfig.yml create mode 100755 dotfiles/qutebrowser/bookmarks/urls create mode 100755 dotfiles/qutebrowser/config.py create mode 100755 dotfiles/qutebrowser/startpage/.gitignore create mode 100755 dotfiles/qutebrowser/startpage/css/main.css create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold-Italic.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold-Italic.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Italic.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium-Italic.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Regular.woff create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold-Italic.woff2 create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold.woff2 create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold-Italic.woff2 create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold.woff2 create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Italic.woff2 create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium-Italic.woff2 create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium.woff2 create mode 100755 dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Regular.woff2 create mode 100755 dotfiles/qutebrowser/startpage/index.html create mode 100755 dotfiles/sxhkd/sxhkdrc create mode 100755 dotfiles/zathura/zathurarc create mode 100755 dotfiles/zsh/zshrc create mode 100644 etc/linux_kernel_config create mode 100644 etc/profile create mode 100644 etc/profile.d/theion.sh create mode 100755 scripts/border create mode 100755 scripts/gap create mode 100755 scripts/nocomment create mode 100755 scripts/nospac create mode 100755 scripts/sBrightness create mode 100755 scripts/sScreenshot create mode 100755 scripts/sTouchpad create mode 100755 scripts/sVolume create mode 100755 scripts/setwp delete mode 100644 src/distros/arch-linux/pacman.conf delete mode 100644 src/dotfiles/Xresources delete mode 100644 src/dotfiles/alacritty/alacritty.toml delete mode 100755 src/dotfiles/bspwm/bspwmrc delete mode 100644 src/dotfiles/dunst/dunstrc delete mode 100755 src/dotfiles/i3/config delete mode 100644 src/dotfiles/kitty/kitty.conf delete mode 100644 src/dotfiles/lf/lfrc delete mode 100644 src/dotfiles/mimeapps.list delete mode 100644 src/dotfiles/mpv/input.conf delete mode 100755 src/dotfiles/nsxiv/exec/key-handler delete mode 100644 src/dotfiles/nvim/init.lua delete mode 100644 src/dotfiles/nvim/lua/master/init.lua delete mode 100644 src/dotfiles/nvim/lua/master/packer.lua delete mode 100644 src/dotfiles/nvim/lua/master/plugins/comment.lua delete mode 100644 src/dotfiles/nvim/lua/master/plugins/gruvbox.lua delete mode 100644 src/dotfiles/nvim/lua/master/plugins/neotree.lua delete mode 100644 src/dotfiles/nvim/lua/master/plugins/nvim-autopairs.lua delete mode 100644 src/dotfiles/nvim/lua/master/plugins/toggleterm.lua delete mode 100644 src/dotfiles/nvim/lua/master/vim_settings.lua delete mode 100644 src/dotfiles/picom/picom.conf delete mode 100755 src/dotfiles/polybar/config.ini delete mode 100755 src/dotfiles/polybar/launch.sh delete mode 100755 src/dotfiles/qutebrowser/autoconfig.yml delete mode 100755 src/dotfiles/qutebrowser/bookmarks/urls delete mode 100755 src/dotfiles/qutebrowser/config.py delete mode 100755 src/dotfiles/qutebrowser/startpage/.gitignore delete mode 100755 src/dotfiles/qutebrowser/startpage/css/main.css delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold-Italic.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold-Italic.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Italic.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium-Italic.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff/JetBrainsMono-Regular.woff delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold-Italic.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold-Italic.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Italic.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium-Italic.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Regular.woff2 delete mode 100755 src/dotfiles/qutebrowser/startpage/index.html delete mode 100755 src/dotfiles/sxhkd/sxhkdrc delete mode 100755 src/dotfiles/zathura/zathurarc delete mode 100755 src/dotfiles/zsh/zshrc delete mode 100644 src/etc/linux_kernel_config delete mode 100644 src/etc/profile delete mode 100644 src/etc/profile.d/theion.sh delete mode 100755 src/scripts/border delete mode 100755 src/scripts/gap delete mode 100755 src/scripts/nocomment delete mode 100755 src/scripts/nospac delete mode 100755 src/scripts/sBrightness delete mode 100755 src/scripts/sScreenshot delete mode 100755 src/scripts/sTouchpad delete mode 100755 src/scripts/sVolume delete mode 100755 src/scripts/setwp diff --git a/distros/arch-linux/pacman.conf b/distros/arch-linux/pacman.conf new file mode 100644 index 0000000..5f31540 --- /dev/null +++ b/distros/arch-linux/pacman.conf @@ -0,0 +1,23 @@ +[options] + +ILoveCandy + +HoldPkg = pacman glibc + +Architecture = auto + +CheckSpace + +VerbosePkgLists + +ParallelDownloads = 5 + +SigLevel = Required DatabaseOptional + +LocalFileSigLevel = Optional + +[core] +Include = /etc/pacman.d/mirrorlist + +[extra] +Include = /etc/pacman.d/mirrorlist diff --git a/dotfiles/Xresources b/dotfiles/Xresources new file mode 100644 index 0000000..42259ae --- /dev/null +++ b/dotfiles/Xresources @@ -0,0 +1,34 @@ +! Black + DarkGrey +*color0: #000000 +*color8: #555753 +! DarkRed + Red +*color1: #ff6565 +*color9: #ff8d8d +! DarkGreen + Green +*color2: #93d44f +*color10: #c8e7a8 +! DarkYellow + Yellow +*color3: #eab93d +*color11: #ffc123 +! DarkBlue + Blue +*color4: #204a87 +*color12: #3465a4 +! DarkMagenta + Magenta +*color5: #ce5c00 +*color13: #f57900 +!DarkCyan + Cyan (both not tango) +*color6: #89b6e2 +*color14: #46a4ff +! LightGrey + White +*color7: #cccccc +*color15: #ffffff + +XTerm.vt100.background: black +XTerm.vt100.foreground: grey +XTerm.vt100.foreground: grey + +Sxiv.background: #282828 +Sxiv.foreground: #ebdbb2 + +Nsxiv.window.foreground: #4E3524 +Nsxiv.window.background: #282828 diff --git a/dotfiles/alacritty/alacritty.toml b/dotfiles/alacritty/alacritty.toml new file mode 100644 index 0000000..f558b57 --- /dev/null +++ b/dotfiles/alacritty/alacritty.toml @@ -0,0 +1,43 @@ +# Gruvbox themed alacritty config + +[colors.bright] +black = "#928374" +blue = "#83a598" +cyan = "#8ec07c" +green = "#b8bb26" +magenta = "#d3869b" +red = "#fb4934" +white = "#ebdbb2" +yellow = "#fabd2f" + +[colors.normal] +black = "#282828" +blue = "#458588" +cyan = "#689d6a" +green = "#98971a" +magenta = "#b16286" +red = "#cc241d" +white = "#a89984" +yellow = "#d79921" + +[colors.primary] +background = "#282828" +foreground = "#ebdbb2" + +[font] +size = 9 + +[font.bold] +family = "JetBrainsMono Nerd Font" +style = "Bold" + +[font.bold_italic] +family = "monospace" +style = "Bold Italic" + +[font.italic] +family = "monospace" +style = "Italic" + +[font.normal] +family = "JetBrainsMono Nerd Font" diff --git a/dotfiles/bspwm/bspwmrc b/dotfiles/bspwm/bspwmrc new file mode 100755 index 0000000..75bb794 --- /dev/null +++ b/dotfiles/bspwm/bspwmrc @@ -0,0 +1,43 @@ +#!/bin/sh + +# Gruvbox themed bspwm config + +[ -z $XDG_COLOR_TRANSFORM ] && XDG_COLOR_TRANSFORM="#4E3524" +[ -z $XDG_COLOR_INACTIVE_TRANSFORM ] && XDG_COLOR_INACTIVE_TRANSFORM="#262626" + +pgrep -x sxhkd > /dev/null || sxhkd & + + +bspc rule -a kitty state=floating border=off +bspc rule -a Zathura state=tiled +bspc rule -a mpv follow=on + +bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9 + + +#borders and colors +bspc config normal_border_color $XDG_COLOR_INACTIVE_TRANSFORM +bspc config focused_border_color $XDG_COLOR_TRANSFORM +bspc config border_width 10 +bspc config window_gap 3 +bspc config single_monocle true +bspc config borderless_monocle true +bspc config gapless_monocle true + + +# setxkbmap -option "caps:escape" #to switch caps with escape + + +# Uncomment the following 2 lines to make the Caps Lock button +# work as Escape when pressed alone, and as Ctrl when pressed +# with another key. + +# xcape -e 'Caps_Lock=Escape' +setxkbmap -option "caps:ctrl_modifier" + +xset r rate 300 50 #increase cursor speed +xset s off && xset -dpms #disable screen blackening +unclutter & #hide mouse cursor if it is inactive +setxkbmap us #turn keyboard layout to United States +xgamma -gamma 0.8 +picom & diff --git a/dotfiles/dunst/dunstrc b/dotfiles/dunst/dunstrc new file mode 100644 index 0000000..8a23001 --- /dev/null +++ b/dotfiles/dunst/dunstrc @@ -0,0 +1,33 @@ +# Very minimal dunst config + +[global] + width = 300 + height = 300 + origin = bottom-right + offset = 10x10 + scale = 0 + notification_limit = 6 + separator_height = 2 + alignment = left + stack_duplicates = true + frame_width = 3 + frame_color = "#4E3524" + gap_size = 6 + separator_color = frame + font = JetBrainsMono Nerd Font 10 + line_height = 3 + +[urgency_normal] + foreground = "#282828" + background = "#a89984" + timeout = 5 + +[urgency_low] + foreground = "#a89984" + background = "#282828" + timeout = 3 + +[urgency_critical] + foreground = "#282828" + background = "#a89984" + timeout = 8 diff --git a/dotfiles/i3/config b/dotfiles/i3/config new file mode 100755 index 0000000..61db90b --- /dev/null +++ b/dotfiles/i3/config @@ -0,0 +1,215 @@ +# Theion's i3-wm config +font pango: JetBrainsMono Nerd Font 0 + +set $bg #282828 +set $red #cc241d +set $green #98971a +set $yellow #d79921 +set $blue #458588 +set $purple #b16286 +set $aqua #689d68 +set $gray #a89984 +set $darkgray #1d2021 +set $darkbrown #4E3524 +set $bar #262626 + +#Set Alt key +set $mod Mod1 + +#set Super key +#set $mod Mod4 + +#movements +set $up k +set $down j +set $left h +set $right l + + +# switch to workspace +bindsym $mod+1 workspace 1 +bindsym $mod+2 workspace 2 +bindsym $mod+3 workspace 3 +bindsym $mod+4 workspace 4 +bindsym $mod+5 workspace 5 +bindsym $mod+6 workspace 6 +bindsym $mod+7 workspace 7 +bindsym $mod+8 workspace 8 +bindsym $mod+9 workspace 9 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace 1 +bindsym $mod+Shift+2 move container to workspace 2 +bindsym $mod+Shift+3 move container to workspace 3 +bindsym $mod+Shift+4 move container to workspace 4 +bindsym $mod+Shift+5 move container to workspace 5 +bindsym $mod+Shift+6 move container to workspace 6 +bindsym $mod+Shift+7 move container to workspace 7 +bindsym $mod+Shift+8 move container to workspace 8 +bindsym $mod+Shift+9 move container to workspace 9 + +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart + +# reload the configuration file +bindsym $mod+Shift+c reload + +# kill focused window +bindsym $mod+Shift+q kill + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right + +# 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 + +# move focused window +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move 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 + +#navigate workspaces next / previous +bindsym Mod1+Ctrl+l workspace next +bindsym Mod1+Ctrl+h workspace prev + + +# Make the currently focused window a scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the first scratchpad window +bindsym $mod+minus scratchpad show + +# orientation for new workspaces +default_orientation horizontal + +# split in horizontal orientation +bindsym $mod+g split h + +# split in vertical orientation +bindsym $mod+v split v + +# Enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +bindsym $mod+r mode "resize" + +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + 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 + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 1 px or 1 ppt + bindsym Down resize grow height 1 px or 1 ppt + bindsym Up resize shrink height 1 px or 1 ppt + bindsym Right resize grow width 1 px or 1 ppt + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + + + +#screenshots +bindsym Print exec maim -s --format png /dev/stdout | xclip -selection clipboard -t image/png -i +bindsym $mod+Print exec maim --select | tee ~/Pictures/$(date +%s).png | xclip -sel c -t image/png + +#pulseaudio +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec brightnessctl -c backlight set +5% +bindsym XF86MonBrightnessDown exec brightnessctl -c backlight set 5%- + +#border +for_window [class="^.*"] border pixel 2 +gaps inner 10 +gaps outer 1 +smart_gaps on + + +# green gruvbox +# class border|backgr|text|indicator|child_border +client.focused $green $red $red $darkbrown $darkbrown +client.focused_inactive $darkgray $darkgray $yellow $darkbrown $darkgray +client.unfocused $darkgray $darkgray $yellow $darkbrown $darkgray +client.urgent $red $red $white $red $red + + + +for_window [class="^floating$"] floating enable + +for_window [class="^floating$"] border pixel 0 + +exec --no-startup-id ~/.config/polybar/launch.sh + +exec_always setxkbmap -option "caps:escape" + +exec_always xset r rate 300 50 + +exec_always picom + +exec_always setxkbmap us + +bindsym $mod+d exec --no-startup-id dmenu_run -i -nb '#282828' -nf '#ebdbb2' -sb '#ebdbb2' -sf '#1f222d' -fn 'OperatorMonoBook:bold:pixelsize=13' + +#bindsym $mod+d exec rofi -show run + + +#bindsym $mod+Shift+S exec gnome-screenshot + +bindsym $mod+Return exec --no-startup-id alacritty;focus + +#bindsym $mod+Shift+V exec feh --bg-fill -z ~/.config/i3/wallpapers +bindsym $mod+Shift+v exec nitrogen --set-zoom-fill --random ~/.config/wallpapers + +bindsym $mod+Shift+0 exec killall i3 + +bindsym $mod+Shift+Return exec qutebrowser + +bindsym $mod+Shift+m exec killall kitty + +bindsym $mod+Shift+n exec --no-startup-id kitty --class=floating + +bindsym $mod+Shift+p exec ~/.config/polybar/launch.sh diff --git a/dotfiles/kitty/kitty.conf b/dotfiles/kitty/kitty.conf new file mode 100644 index 0000000..07c905b --- /dev/null +++ b/dotfiles/kitty/kitty.conf @@ -0,0 +1,62 @@ +enable_audio_bell no +remember_window_size no +initial_window_width 840 +initial_window_height 600 + + +background_opacity 0.75 +font_size 14 + + +cursor #928374 +cursor_text_color background + +url_color #83a598 + +visual_bell_color #8ec07c +bell_border_color #8ec07c + +active_border_color #d3869b +inactive_border_color #665c54 + +foreground #ebdbb2 +background #1d2021 +selection_foreground #928374 +selection_background #ebdbb2 + +active_tab_foreground #fbf1c7 +active_tab_background #665c54 +inactive_tab_foreground #a89984 +inactive_tab_background #3c3836 + +# black (bg3/bg4) +color0 #665c54 +color8 #7c6f64 + +# red +color1 #cc241d +color9 #fb4934 + +#: green +color2 #98971a +color10 #b8bb26 + +# yellow +color3 #d79921 +color11 #fabd2f + +# blue +color4 #458588 +color12 #83a598 + +# purple +color5 #b16286 +color13 #d3869b + +# aqua +color6 #689d6a +color14 #8ec07c + +# white (fg4/fg3) +color7 #a89984 +color15 #bdae93 diff --git a/dotfiles/lf/lfrc b/dotfiles/lf/lfrc new file mode 100644 index 0000000..ebfffa3 --- /dev/null +++ b/dotfiles/lf/lfrc @@ -0,0 +1,44 @@ +# Suleyman's gruvbox themed lf config at "https://github.com/thei0n/slcf" +# Due to the facts that ueberzug is no longer maintained and adds extra complexity it is not included in the config + +# Options +set incsearch +set scrolloff 4 #smooth scrolling + +# Key-maps +map shell +map m push $mkdir +map t push $touch +map D trash +map gf $lf -remote "send $id select $(fzf --layout=reverse --height=10)" +map x $$f # execute current file (must be executable) + +map zb :{{ set sortby natural; set info size; set preview; set ratios 5:2; }} +map zz :{{ set preview; set ratios 1:2:3; }} + +# Directory change +map gp cd ~/proj +map gt cd ~/testProj +map gc cd ~/.config +map gh cd ~ +map gu cd /usr/local/bin + +# Colors +set cursoractivefmt "\033[0;1;7m" #white +# set cursoractivefmt "\033[32;1;7m" #yellowish green +# set cursoractivefmt "\033[33;1;7m" #orange +# set cursoractivefmt "\033[36;1;7m" #green + +set cursorparentfmt "\033[0;1;7m" +set tagfmt "\033[32;1;7m" +set rulerfmt "\033[32;1;7m" + +set promptfmt "\033[48;1;234m %w/%f" + + +cmd trash !{{ + [ ! -d ~/.trash ] && mkdir -p ~/.trash + set -f + printf "\nItems to be trashed:\n$fx\n\nTrash? [y/N]" && read ans + [ $ans == "y" ] && mv $fx ~/.trash && echo "Trash complete!" || echo "Failed! Use y to trash." +}} diff --git a/dotfiles/mimeapps.list b/dotfiles/mimeapps.list new file mode 100644 index 0000000..5efa139 --- /dev/null +++ b/dotfiles/mimeapps.list @@ -0,0 +1,17 @@ +[Default Applications] +application/pdf=org.pwmt.zathura.desktop + +[Default Applications] +image/jpeg=nsxiv.desktop +image/png=nsxiv.desktop +image/jpg=nsxiv.desktop + +[Default Applications] +text/plain=nvim.desktop + +[Default Applications] +text/html=org.qutebrowser.qutebrowser.desktop + +[Default Application] +x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop +x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop diff --git a/dotfiles/mpv/input.conf b/dotfiles/mpv/input.conf new file mode 100644 index 0000000..d614b15 --- /dev/null +++ b/dotfiles/mpv/input.conf @@ -0,0 +1,5 @@ +l seek 5 +h seek -5 +j seek -60 +k seek 60 +S cycle sub diff --git a/dotfiles/nsxiv/exec/key-handler b/dotfiles/nsxiv/exec/key-handler new file mode 100755 index 0000000..a3880e4 --- /dev/null +++ b/dotfiles/nsxiv/exec/key-handler @@ -0,0 +1,43 @@ +#!/bin/sh + +# For theme to be applied ~/.Xresource file must be present + +while read -r file +do + case "$1" in + + "m") + [ -z $destdir ] && destdir="$(echo "$HOME/Pictures" | dmenu -p "Move directory: " | sed "s|~|$HOME|g")" + + [ ! -d $destdir ] && { nsend "Not a directory" ; exit 2 ;} + + mv "$file" "$destdir" && nsend "$file moved to $destdir" & + ;; + + "c") + + [ -z $destdir ] && destdir="$(echo "$HOME/Pictures" | dmenu -p "Copy directory: " | sed "s|~|$HOME|g")" + + [ ! -d $destdir ] && { nsend "Not a directory" ; exit 2 ;} + + cp "$file" "$destdir" && nsend "$file copied to $destdir" & + ;; + + "w") + setwp "$file" && nsend "Wallpaper changed to $file" ;; + "d") + [ ! -d ~/.trash ] && { mkdir ~/.trash && nsend "~/.trash created";} + mv "$file" ~/.trash && nsend "$file is moved to ~/.trash" ;; + "r") + convert -rotate 90 "$file" "$file" ;; + "R") + convert -rotate -90 "$file" "$file" ;; + "f") + convert -flop "$file" "$file" ;; + "y") + echo -n "$file" | xclip -selection clipboard && nsend "Copied to clipboard" & ;; + "Y") + readlink -f "$file" | tr -d '\n' | xclip -selection clipboard && nsend "Copied to clipboard" & ;; + + esac + done diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua new file mode 100644 index 0000000..1f4b737 --- /dev/null +++ b/dotfiles/nvim/init.lua @@ -0,0 +1,2 @@ +-- Suleyman's gruvbox themed neovim config at "https://github.com/thei0n/slcf" +require("master") diff --git a/dotfiles/nvim/lua/master/init.lua b/dotfiles/nvim/lua/master/init.lua new file mode 100644 index 0000000..82b4aff --- /dev/null +++ b/dotfiles/nvim/lua/master/init.lua @@ -0,0 +1,7 @@ +require("master.packer") +require("master.vim_settings") +require("master.plugins.gruvbox") +require("master.plugins.comment") +require("master.plugins.toggleterm") +require("master.plugins.neotree") +require("master.plugins.nvim-autopairs") diff --git a/dotfiles/nvim/lua/master/packer.lua b/dotfiles/nvim/lua/master/packer.lua new file mode 100644 index 0000000..c31c23a --- /dev/null +++ b/dotfiles/nvim/lua/master/packer.lua @@ -0,0 +1,39 @@ +--[[ PACKER BOOTSTRAP ]] + +local ensure_packer = function() + local fn = vim.fn + local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' + if fn.empty(fn.glob(install_path)) > 0 then + fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) + vim.cmd [[packadd packer.nvim]] + return true + end + return false +end + +local packer_bootstrap = ensure_packer() + +return require('packer').startup(function(use) + use 'wbthomason/packer.nvim' + + + use "ellisonleao/gruvbox.nvim" + use "akinsho/toggleterm.nvim" + use 'numToStr/Comment.nvim' + use 'windwp/nvim-autopairs' + + use { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + requires = { + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + } + } + + if packer_bootstrap then + require('packer').sync() + end +end) + + diff --git a/dotfiles/nvim/lua/master/plugins/comment.lua b/dotfiles/nvim/lua/master/plugins/comment.lua new file mode 100644 index 0000000..66dcbc5 --- /dev/null +++ b/dotfiles/nvim/lua/master/plugins/comment.lua @@ -0,0 +1,28 @@ +require('Comment').setup{ + + ---Add a space b/w comment and the line + padding = true, + + ---Whether the cursor should stay at its position + sticky = true, + + ---Lines to be ignored while (un)comment + ignore = nil, + + ---LHS of toggle mappings in NORMAL mode + toggler = { + ---Line-comment toggle keymap + line = 'cc', + ---Block-comment toggle keymap + block = 'cb', + }, + + ---LHS of operator-pending mappings in NORMAL and VISUAL mode + opleader = { + ---Line-comment keymap + line = 'cc', + ---Block-comment keymap + block = 'cb', + }, + +} diff --git a/dotfiles/nvim/lua/master/plugins/gruvbox.lua b/dotfiles/nvim/lua/master/plugins/gruvbox.lua new file mode 100644 index 0000000..01ad938 --- /dev/null +++ b/dotfiles/nvim/lua/master/plugins/gruvbox.lua @@ -0,0 +1,27 @@ +-- Default options: +require("gruvbox").setup({ + terminal_colors = true, -- add neovim terminal colors + undercurl = true, + underline = true, + bold = true, + italic = { + strings = true, + emphasis = true, + comments = true, + operators = false, + folds = true, + }, + + strikethrough = true, + invert_selection = false, + invert_signs = false, + invert_tabline = false, + invert_intend_guides = false, + inverse = true, -- invert background for search, diffs, statuslines and errors + contrast = "", -- can be "hard", "soft" or empty string + palette_overrides = {}, + overrides = {}, + dim_inactive = false, + transparent_mode = false, +}) + diff --git a/dotfiles/nvim/lua/master/plugins/neotree.lua b/dotfiles/nvim/lua/master/plugins/neotree.lua new file mode 100644 index 0000000..abdf1fc --- /dev/null +++ b/dotfiles/nvim/lua/master/plugins/neotree.lua @@ -0,0 +1,34 @@ +require("neo-tree").setup({ + --Setup + filesystem = { + window = { + mappings = { + ["l"] = "open", + ["h"] = "close_node", + ["zh"] = "toggle_hidden", + ["H"] = "close_all_nodes", + } + } + }, + + --Indent Markers + default_component_configs = { + indent = { + with_markers = true, + indent_marker = "│", + last_indent_marker = "└", + indent_size = 2, + }, + }, + + --Expanders + default_component_configs = { + indent = { + with_expanders = false, --Not active + expander_collapsed = "", + expander_expanded = "", + expander_highlight = "NeoTreeExpander", + }, + }, + +}) diff --git a/dotfiles/nvim/lua/master/plugins/nvim-autopairs.lua b/dotfiles/nvim/lua/master/plugins/nvim-autopairs.lua new file mode 100644 index 0000000..0649588 --- /dev/null +++ b/dotfiles/nvim/lua/master/plugins/nvim-autopairs.lua @@ -0,0 +1,6 @@ +require('nvim-autopairs').setup({ + disable_filetype = { "TelescopePrompt", "spectre_panel", "neo-tree-popup", "conf"}, + disable_in_macro = true, + disable_in_visualblock = false, + disable_in_replace_mode = true, +}) diff --git a/dotfiles/nvim/lua/master/plugins/toggleterm.lua b/dotfiles/nvim/lua/master/plugins/toggleterm.lua new file mode 100644 index 0000000..79c3488 --- /dev/null +++ b/dotfiles/nvim/lua/master/plugins/toggleterm.lua @@ -0,0 +1,13 @@ +require("toggleterm").setup{ + size = 6, + open_mapping = [[]], + hide_numbers = true, + shade_terminals = true, + direction = "float", + + float_opts = { + border = 'curved', + winblend = 10, --transparency + } + +} diff --git a/dotfiles/nvim/lua/master/vim_settings.lua b/dotfiles/nvim/lua/master/vim_settings.lua new file mode 100644 index 0000000..24c8564 --- /dev/null +++ b/dotfiles/nvim/lua/master/vim_settings.lua @@ -0,0 +1,42 @@ +-- [[Vim settings]] + +vim.cmd("set clipboard+=unnamedplus") -- Use System Clipboard +vim.opt.fillchars = {eob = " "} + + +-- [[ Changes to make vim look simpler ]] +vim.cmd([[ set shortmess+=I ]]) -- Remove Intro text when entering vim +vim.cmd("set noshowmode") +-- vim.cmd("set noshowcmd") +vim.cmd("set noruler") +vim.cmd("set laststatus=-") +vim.cmd("set statusline=0") +-- [] + +vim.cmd([[set number]]) + +vim.cmd([[set scrolloff=5]]) -- Smooth scroll + +vim.o.background = "dark" -- or "light" for light mode + +vim.cmd([[set formatoptions-=cro]]) -- Deactivating autocomment + +vim.cmd([[autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o]]) + +vim.cmd([[ autocmd BufwritePost * %s/\s\+$//e ]]) -- Remove useless spaces when saving +-- [[Mappings]] + +-- Move cursor in Insert mode +vim.keymap.set('i','','gk') +vim.keymap.set('i','','') +vim.keymap.set('i','','') +vim.keymap.set('i','','gj') + +vim.g.mapleader = ' ' +vim.g.maplocalleader = ' ' + +vim.keymap.set('n','',':w!') +vim.keymap.set('n','q',':wqa!') +vim.keymap.set('n','e', ':Neotree toggle right') +vim.keymap.set('n', 'o', 'w') +vim.cmd("colorscheme gruvbox") diff --git a/dotfiles/picom/picom.conf b/dotfiles/picom/picom.conf new file mode 100644 index 0000000..9f942af --- /dev/null +++ b/dotfiles/picom/picom.conf @@ -0,0 +1,25 @@ +# Minimal picom config + +backend = "glx"; + +#Shadows +shadow = true; +shadow-radius = 7; +shadow-offset-x = -7; +shadow-offset-y = -7; + +#Fadings +fading = true; +fade-in-step = 0.03; +fade-out-step = 0.03; + +vsync = true; + + wintypes: + { + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + dock = { shadow = false; clip-shadow-above = true; } + dnd = { shadow = false; } + popup_menu = { opacity = 0.8; } + dropdown_menu = { opacity = 0.8; } + }; diff --git a/dotfiles/polybar/config.ini b/dotfiles/polybar/config.ini new file mode 100755 index 0000000..14c4852 --- /dev/null +++ b/dotfiles/polybar/config.ini @@ -0,0 +1,168 @@ +# Compatiable with environmental color variables, fallback theme is set to be gruvbox + +[colors] +background_inactive = ${env:XDG_COLOR_INACTIVE_FOREGROUND:#a89984} +background = ${env:XDG_COLOR_BACKGROUND:#282828} +foreground = ${env:XDG_COLOR_FOREGROUND:#ebdbb2} +warning = ${env:XDG_COLOR_WARNING:#cc241d} +non_warning = ${env:XDG_COLOR_NON_WARNING:#458588} +interactive = ${env:XDG_COLOR_INTERACTIVE:#98971a} + +[bar/example] +width = 100% +height = 19 +; Change if using another window manager +wm-restack = bspwm + +; Align modules fixed to middle +fixed-center = true + +; Colors +background = ${colors.background} +foreground = ${colors.foreground} + +; Underline +line-size = 2 +line-color = ${colors.foreground} + +; Border +border-size = 1 +border-color = ${colors.background} + +; Padding +padding-left = 4 +padding-right = 4 + +; Margin of modules +module-margin-left = 2 +module-margin-right = 2 + +; Font +font-0 = "Roboto:size=11;3" + +; Modlues +; add "date" for clock +; beggining of modules-left is recommended for date module +modules-left = pulseaudio backlight +modules-center = bspwm +modules-right = battery cpu memory + +; Cursor actions +cursor-click = pointer +cursor-scroll = ns-resize +font-2 = "Noto Sans:size=11;1" + +[module/xworkspaces] +type = internal/xworkspaces +label = %title:0:60:...% +label-active-padding = 2 +label-urgent-padding = 2 +label-empty-padding = 2 +label-occupied-padding=2 + +label-urgent-foreground = ${colors.background_inactive} +label-occupied-foreground = ${colors.background_inactive} +label-active-font = 1 + +[module/bspwm] +type = internal/bspwm + +pin-workspaces = true +label-focused = %index% +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-foreground = ${colors.background_inactive} +label-occupied-padding = 2 + +label-urgent = %index% +label-urgent-foreground = ${colors.warning} +label-urgent-padding = 2 + +label-empty = + +[module/battery] +type=internal/battery +full-at=99 +low-at=15 +battery=BAT0 +adapter=ADP1 +poll-interval=5 +format-discharging=Battery: +label-discharging=%percentage%% +format-charging=Charging: +label-charging=%percentage%% +format-discharging-foreground=${colors.background_inactive} +label-discharging-foreground=${colors.foreground} + +[module/backlight] +type = internal/backlight +card = intel_backlight +use-actual-brightness = true +enable-scroll = true +format = Brightness: