diff options
Diffstat (limited to 'config')
47 files changed, 1745 insertions, 0 deletions
diff --git a/config/Xresources b/config/Xresources new file mode 100644 index 0000000..42259ae --- /dev/null +++ b/config/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/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml new file mode 100644 index 0000000..f558b57 --- /dev/null +++ b/config/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/config/bspwm/bspwmrc b/config/bspwm/bspwmrc new file mode 100755 index 0000000..75bb794 --- /dev/null +++ b/config/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/config/dunst/dunstrc b/config/dunst/dunstrc new file mode 100644 index 0000000..8a23001 --- /dev/null +++ b/config/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/config/i3/config b/config/i3/config new file mode 100755 index 0000000..61db90b --- /dev/null +++ b/config/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/config/kitty/kitty.conf b/config/kitty/kitty.conf new file mode 100644 index 0000000..07c905b --- /dev/null +++ b/config/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/config/lf/lfrc b/config/lf/lfrc new file mode 100644 index 0000000..ebfffa3 --- /dev/null +++ b/config/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 <enter> shell +map m push $mkdir<space> +map t push $touch<space> +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/config/mimeapps.list b/config/mimeapps.list new file mode 100644 index 0000000..5efa139 --- /dev/null +++ b/config/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/config/mpv/input.conf b/config/mpv/input.conf new file mode 100644 index 0000000..d614b15 --- /dev/null +++ b/config/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/config/nsxiv/exec/key-handler b/config/nsxiv/exec/key-handler new file mode 100755 index 0000000..a3880e4 --- /dev/null +++ b/config/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/config/nvim/init.lua b/config/nvim/init.lua new file mode 100644 index 0000000..1f4b737 --- /dev/null +++ b/config/nvim/init.lua @@ -0,0 +1,2 @@ +-- Suleyman's gruvbox themed neovim config at "https://github.com/thei0n/slcf" +require("master") diff --git a/config/nvim/lua/master/init.lua b/config/nvim/lua/master/init.lua new file mode 100644 index 0000000..82b4aff --- /dev/null +++ b/config/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/config/nvim/lua/master/packer.lua b/config/nvim/lua/master/packer.lua new file mode 100644 index 0000000..c31c23a --- /dev/null +++ b/config/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/config/nvim/lua/master/plugins/comment.lua b/config/nvim/lua/master/plugins/comment.lua new file mode 100644 index 0000000..66dcbc5 --- /dev/null +++ b/config/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/config/nvim/lua/master/plugins/gruvbox.lua b/config/nvim/lua/master/plugins/gruvbox.lua new file mode 100644 index 0000000..01ad938 --- /dev/null +++ b/config/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/config/nvim/lua/master/plugins/neotree.lua b/config/nvim/lua/master/plugins/neotree.lua new file mode 100644 index 0000000..abdf1fc --- /dev/null +++ b/config/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/config/nvim/lua/master/plugins/nvim-autopairs.lua b/config/nvim/lua/master/plugins/nvim-autopairs.lua new file mode 100644 index 0000000..0649588 --- /dev/null +++ b/config/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/config/nvim/lua/master/plugins/toggleterm.lua b/config/nvim/lua/master/plugins/toggleterm.lua new file mode 100644 index 0000000..79c3488 --- /dev/null +++ b/config/nvim/lua/master/plugins/toggleterm.lua @@ -0,0 +1,13 @@ +require("toggleterm").setup{ + size = 6, + open_mapping = [[<c-f>]], + hide_numbers = true, + shade_terminals = true, + direction = "float", + + float_opts = { + border = 'curved', + winblend = 10, --transparency + } + +} diff --git a/config/nvim/lua/master/vim_settings.lua b/config/nvim/lua/master/vim_settings.lua new file mode 100644 index 0000000..24c8564 --- /dev/null +++ b/config/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','<C-k>','<C-o>gk') +vim.keymap.set('i','<C-h>','<Left>') +vim.keymap.set('i','<C-l>','<Right>') +vim.keymap.set('i','<C-j>','<C-o>gj') + +vim.g.mapleader = ' ' +vim.g.maplocalleader = ' ' + +vim.keymap.set('n','<leader><leader>',':w!<CR>') +vim.keymap.set('n','<leader>q',':wqa!<CR>') +vim.keymap.set('n','<leader>e', ':Neotree toggle right<CR>') +vim.keymap.set('n', '<leader>o', '<C-W>w') +vim.cmd("colorscheme gruvbox") diff --git a/config/picom/picom.conf b/config/picom/picom.conf new file mode 100644 index 0000000..9f942af --- /dev/null +++ b/config/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/config/polybar/config.ini b/config/polybar/config.ini new file mode 100755 index 0000000..14c4852 --- /dev/null +++ b/config/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> +label-discharging=%percentage%% +format-charging=Charging: <label-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: <label> +label=%percentage%% +format-foreground=${colors.background_inactive} +label-foreground=${colors.foreground} + +[module/date] +type = internal/date +interval = 1.0 +date=%Y-%m-%d% +time=%H:%M +date-alt = %A, %d %B %Y +time-alt = %H:%M:%S +format=<label> +label=%time% +format-foreground=${colors.non_warning} + +[module/cpu] +type = internal/cpu +interval = 0.5 +warn-percentage = 95 +format= cpu: <label> +label=%percentage%% + +format-foreground=${colors.background_inactive} +label-foreground=${colors.foreground} + +[module/memory] +type = internal/memory +interval = 3 +warn-percentage = 95 +format=ram: <label> +label=%gb_used% + +format-foreground=${colors.background_inactive} +label-foreground=${colors.foreground} + +[module/pulseaudio] +type = internal/pulseaudio +format-volume-prefix = "VOL " +format-volume = <label-volume> +label-muted = VOL %percentage%% +label-volume = %percentage%% +label-muted-foreground = ${colors.background_inactive} +format-volume-prefix-foreground = ${colors.background_inactive} + +[network-base] +type = internal/network +interval = 5 +format-connected = <label-connected> +format-disconnected = <label-disconnected> +label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected + +[module/wlan] +inherit = network-base +interface-type = wireless +label-connected = %essid% +label-connected-foreground = ${colors.interactive} + +[module/eth] +inherit = network-base +interface-type = wired +label-connected = %{F#F0C674}%ifname%%{F-} %local_ip% + +[module/wired-network] +type = internal/network +interface = enp2s0 diff --git a/config/polybar/launch.sh b/config/polybar/launch.sh new file mode 100755 index 0000000..75576b4 --- /dev/null +++ b/config/polybar/launch.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Terminate already running bar instances +# If all your bars have ipc enabled, you can use +polybar-msg cmd quit +# Otherwise you can use the nuclear option: +killall -q polybar + +# Launch bar1 and bar2 +echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log +polybar example 2>&1 | tee -a /tmp/polybar1.log & disown +polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown + +echo "Bars launched..." diff --git a/config/qutebrowser/autoconfig.yml b/config/qutebrowser/autoconfig.yml new file mode 100755 index 0000000..92b68a1 --- /dev/null +++ b/config/qutebrowser/autoconfig.yml @@ -0,0 +1,25 @@ +# If a config.py file exists, this file is ignored unless it's explicitly loaded +# via config.load_autoconfig(). For more information, see: +# https://github.com/qutebrowser/qutebrowser/blob/main/doc/help/configuring.asciidoc#loading-autoconfigyml +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 2 +settings: + content.notifications.enabled: + https://mail.tutanota.com: false + content.register_protocol_handler: + https://mail.tutanota.com#url=%25s: false + statusbar.show: + global: in-mode + tabs.show: + global: multiple + url.default_page: + global: ~/.config/qutebrowser/startpage/index.html + url.open_base_url: + global: true + url.searchengines: + global: + DEFAULT: http://priv.au/search?q={}&language=en&time_range=&safesearch=0&categories=general + url.start_pages: + global: ~/.config/qutebrowser/startpage/index.html diff --git a/config/qutebrowser/bookmarks/urls b/config/qutebrowser/bookmarks/urls new file mode 100755 index 0000000..0711a66 --- /dev/null +++ b/config/qutebrowser/bookmarks/urls @@ -0,0 +1,2 @@ +yewtu.be +onion.tube diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py new file mode 100755 index 0000000..3fd5774 --- /dev/null +++ b/config/qutebrowser/config.py @@ -0,0 +1,303 @@ +# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) +# Scheme name: Gruvbox dark, medium +# Scheme author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) +# Template author: theova +# Commentary: Tinted Theming: (https://github.com/tinted-theming) + +base00 = "#282828" +base01 = "#3c3836" +base02 = "#504945" +base03 = "#665c54" +base04 = "#bdae93" +base05 = "#d5c4a1" +base06 = "#ebdbb2" +base07 = "#fbf1c7" +base08 = "#fb4934" +base09 = "#fe8019" +base0A = "#fabd2f" +base0B = "#b8bb26" +base0C = "#8ec07c" +base0D = "#83a598" +base0E = "#d3869b" +base0F = "#d65d0e" + +# set qutebrowser colors + +# Text color of the completion widget. May be a single color to use for +# all columns or a list of three colors, one for each column. +c.colors.completion.fg = base05 + +# Background color of the completion widget for odd rows. +c.colors.completion.odd.bg = base01 + +# Background color of the completion widget for even rows. +c.colors.completion.even.bg = base00 + +# Foreground color of completion widget category headers. +c.colors.completion.category.fg = base0A + +# Background color of the completion widget category headers. +c.colors.completion.category.bg = base00 + +# Top border color of the completion widget category headers. +c.colors.completion.category.border.top = base00 + +# Bottom border color of the completion widget category headers. +c.colors.completion.category.border.bottom = base00 + +# Foreground color of the selected completion item. +c.colors.completion.item.selected.fg = base05 + +# Background color of the selected completion item. +c.colors.completion.item.selected.bg = base02 + +# Top border color of the selected completion item. +c.colors.completion.item.selected.border.top = base02 + +# Bottom border color of the selected completion item. +c.colors.completion.item.selected.border.bottom = base02 + +# Foreground color of the matched text in the selected completion item. +c.colors.completion.item.selected.match.fg = base0B + +# Foreground color of the matched text in the completion. +c.colors.completion.match.fg = base0B + +# Color of the scrollbar handle in the completion view. +c.colors.completion.scrollbar.fg = base05 + +# Color of the scrollbar in the completion view. +c.colors.completion.scrollbar.bg = base00 + +# Background color of disabled items in the context menu. +c.colors.contextmenu.disabled.bg = base01 + +# Foreground color of disabled items in the context menu. +c.colors.contextmenu.disabled.fg = base04 + +# Background color of the context menu. If set to null, the Qt default is used. +c.colors.contextmenu.menu.bg = base00 + +# Foreground color of the context menu. If set to null, the Qt default is used. +c.colors.contextmenu.menu.fg = base05 + +# Background color of the context menu’s selected item. If set to null, the Qt default is used. +c.colors.contextmenu.selected.bg = base02 + +#Foreground color of the context menu’s selected item. If set to null, the Qt default is used. +c.colors.contextmenu.selected.fg = base05 + +# Background color for the download bar. +c.colors.downloads.bar.bg = base00 + +# Color gradient start for download text. +c.colors.downloads.start.fg = base00 + +# Color gradient start for download backgrounds. +c.colors.downloads.start.bg = base0D + +# Color gradient end for download text. +c.colors.downloads.stop.fg = base00 + +# Color gradient stop for download backgrounds. +c.colors.downloads.stop.bg = base0C + +# Foreground color for downloads with errors. +c.colors.downloads.error.fg = base08 + +# Font color for hints. +c.colors.hints.fg = base00 + +# Background color for hints. Note that you can use a `rgba(...)` value +# for transparency. +c.colors.hints.bg = base0A + +# Font color for the matched part of hints. +c.colors.hints.match.fg = base05 + +# Text color for the keyhint widget. +c.colors.keyhint.fg = base05 + +# Highlight color for keys to complete the current keychain. +c.colors.keyhint.suffix.fg = base05 + +# Background color of the keyhint widget. +c.colors.keyhint.bg = base00 + +# Foreground color of an error message. +c.colors.messages.error.fg = base00 + +# Background color of an error message. +c.colors.messages.error.bg = base08 + +# Border color of an error message. +c.colors.messages.error.border = base08 + +# Foreground color of a warning message. +c.colors.messages.warning.fg = base00 + +# Background color of a warning message. +c.colors.messages.warning.bg = base0E + +# Border color of a warning message. +c.colors.messages.warning.border = base0E + +# Foreground color of an info message. +c.colors.messages.info.fg = base05 + +# Background color of an info message. +c.colors.messages.info.bg = base00 + +# Border color of an info message. +c.colors.messages.info.border = base00 + +# Foreground color for prompts. +c.colors.prompts.fg = base05 + +# Border used around UI elements in prompts. +c.colors.prompts.border = base00 + +# Background color for prompts. +c.colors.prompts.bg = base00 + +# Background color for the selected item in filename prompts. +c.colors.prompts.selected.bg = base02 + +# Foreground color for the selected item in filename prompts. +c.colors.prompts.selected.fg = base05 + +# Foreground color of the statusbar. +c.colors.statusbar.normal.fg = base0B + +# Background color of the statusbar. +c.colors.statusbar.normal.bg = base00 + +# Foreground color of the statusbar in insert mode. +c.colors.statusbar.insert.fg = base00 + +# Background color of the statusbar in insert mode. +c.colors.statusbar.insert.bg = base0D + +# Foreground color of the statusbar in passthrough mode. +c.colors.statusbar.passthrough.fg = base00 + +# Background color of the statusbar in passthrough mode. +c.colors.statusbar.passthrough.bg = base0C + +# Foreground color of the statusbar in private browsing mode. +c.colors.statusbar.private.fg = base00 + +# Background color of the statusbar in private browsing mode. +c.colors.statusbar.private.bg = base01 + +# Foreground color of the statusbar in command mode. +c.colors.statusbar.command.fg = base05 + +# Background color of the statusbar in command mode. +c.colors.statusbar.command.bg = base00 + +# Foreground color of the statusbar in private browsing + command mode. +c.colors.statusbar.command.private.fg = base05 + +# Background color of the statusbar in private browsing + command mode. +c.colors.statusbar.command.private.bg = base00 + +# Foreground color of the statusbar in caret mode. +c.colors.statusbar.caret.fg = base00 + +# Background color of the statusbar in caret mode. +c.colors.statusbar.caret.bg = base0E + +# Foreground color of the statusbar in caret mode with a selection. +c.colors.statusbar.caret.selection.fg = base00 + +# Background color of the statusbar in caret mode with a selection. +c.colors.statusbar.caret.selection.bg = base0D + +# Background color of the progress bar. +c.colors.statusbar.progress.bg = base0D + +# Default foreground color of the URL in the statusbar. +c.colors.statusbar.url.fg = base05 + +# Foreground color of the URL in the statusbar on error. +c.colors.statusbar.url.error.fg = base08 + +# Foreground color of the URL in the statusbar for hovered links. +c.colors.statusbar.url.hover.fg = base05 + +# Foreground color of the URL in the statusbar on successful load +# (http). +c.colors.statusbar.url.success.http.fg = base0C + +# Foreground color of the URL in the statusbar on successful load +# (https). +c.colors.statusbar.url.success.https.fg = base0B + +# Foreground color of the URL in the statusbar when there's a warning. +c.colors.statusbar.url.warn.fg = base0E + +# Background color of the tab bar. +c.colors.tabs.bar.bg = base00 + +# Color gradient start for the tab indicator. +c.colors.tabs.indicator.start = base0D + +# Color gradient end for the tab indicator. +c.colors.tabs.indicator.stop = base0C + +# Color for the tab indicator on errors. +c.colors.tabs.indicator.error = base08 + +# Foreground color of unselected odd tabs. +c.colors.tabs.odd.fg = base05 + +# Background color of unselected odd tabs. +c.colors.tabs.odd.bg = base01 + +# Foreground color of unselected even tabs. +c.colors.tabs.even.fg = base05 + +# Background color of unselected even tabs. +c.colors.tabs.even.bg = base00 + +# Background color of pinned unselected even tabs. +c.colors.tabs.pinned.even.bg = base0C + +# Foreground color of pinned unselected even tabs. +c.colors.tabs.pinned.even.fg = base07 + +# Background color of pinned unselected odd tabs. +c.colors.tabs.pinned.odd.bg = base0B + +# Foreground color of pinned unselected odd tabs. +c.colors.tabs.pinned.odd.fg = base07 + +# Background color of pinned selected even tabs. +c.colors.tabs.pinned.selected.even.bg = base02 + +# Foreground color of pinned selected even tabs. +c.colors.tabs.pinned.selected.even.fg = base05 + +# Background color of pinned selected odd tabs. +c.colors.tabs.pinned.selected.odd.bg = base02 + +# Foreground color of pinned selected odd tabs. +c.colors.tabs.pinned.selected.odd.fg = base05 + +# Foreground color of selected odd tabs. +c.colors.tabs.selected.odd.fg = base05 + +# Background color of selected odd tabs. +c.colors.tabs.selected.odd.bg = base02 + +# Foreground color of selected even tabs. +c.colors.tabs.selected.even.fg = base05 + +# Background color of selected even tabs. +c.colors.tabs.selected.even.bg = base02 + +# Background color for webpages if unset (or empty to use the theme's +# color). +# c.colors.webpage.bg = base00 +config.load_autoconfig() diff --git a/config/qutebrowser/startpage/.gitignore b/config/qutebrowser/startpage/.gitignore new file mode 100755 index 0000000..4e70105 --- /dev/null +++ b/config/qutebrowser/startpage/.gitignore @@ -0,0 +1 @@ +web-ext*/*
\ No newline at end of file diff --git a/config/qutebrowser/startpage/css/main.css b/config/qutebrowser/startpage/css/main.css new file mode 100755 index 0000000..aa46c6b --- /dev/null +++ b/config/qutebrowser/startpage/css/main.css @@ -0,0 +1,204 @@ +@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap"); +.roboto { + font-family: "Roboto", sans-serif; } + +@font-face { + font-family: "JetBrains Mono"; + src: url("../fonts/woff/JetBrainsMono-Regular.woff") format("woff"), url("../fonts/woff2/JetBrainsMono-Regular.woff2") format("woff2"); } + +.jetbrains-mono, body { + font-family: "JetBrains Mono"; } + +body { + height: 97.5vh; + display: flex; + align-items: center; + justify-content: center; + background: #212121; + color: #fff; } + @media screen and (max-height: 501px) { + body { + display: block; + height: 100vh; } } +.main { + width: 100%; + text-align: center; } + .main #date h2 { + padding-top: 15px; + display: inline-block; + vertical-align: top; } + .main #date-text, + .main #weather-text { + color: #d9d9d9; } + .main #message-text { + font-size: 23px; } + .main #search-bar { + width: 50%; + margin: 0 auto 50px auto; + height: 45px; + padding-top: 35px; + position: relative; + display: inline-block; } + .main #search-bar #search-bar-input { + height: 50px; + width: 100%; + background: #2e2e2e; + box-shadow: none; + border: none; + text-align: center; + border-radius: 6px; + outline: none; + padding: 7px 14px; + font-size: 18px; + color: #fff; + box-sizing: border-box; } + .main #search-bar #search-bar-input:focus { + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); + transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } + .main #search-bar .autocomplete-items-container { + position: absolute; + top: 100%; + left: 0; + right: 0; + z-index: 99; + border-radius: 6px; + background: #2e2e2e; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); + transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } + .main #search-bar .autocomplete-items-container .autocomplete-item { + width: 100%; + background: #2e2e2e; + box-shadow: none; + border: none; + text-align: center; + outline: none; + padding: 7px 14px; + font-size: 18px; + color: #fff; + box-sizing: border-box; + z-index: -1; + cursor: pointer; } + .main #search-bar .autocomplete-items-container .autocomplete-item:hover { + background: #3b3b3b; } + .main #search-bar .autocomplete-items-container .autocomplete-active { + background: #353535; } + @media only screen and (max-width: 791px) { + .main #search-bar { + width: 65%; } } + .main #other-content { + margin: 40px auto; + padding: 10px 0; } + .main #other-content .sqr { + vertical-align: top; + display: inline-block; + margin-left: 5px; + margin-right: 5px; + width: 170px; + background: #2e2e2e; + padding: 15px 15px; + border-radius: 6px; + min-height: 150px; + margin-top: 10px; } + .main #other-content .sqr h4 { + font-size: 18px; + margin: 15px; } + .main #other-content .sqr h4 a { + color: inherit; + font-size: inherit; } + .main #other-content .sqr:hover { + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); + transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } + .main #other-content .sqr a { + color: #9e9e9e; + font-size: 16px; + transition: 0.1s ease-in; + display: block; + text-decoration: none; + line-height: 22px; } + .main #other-content .sqr a:hover { + color: #fff; + text-decoration: none; + transition: 0.1s ease-in; } + .main #other-content .media h4, + .main #other-content .media a:hover { + color: #4dd0e1; } + .main #other-content .work h4, + .main #other-content .work a:hover { + color: #f06292; } + .main #other-content .social h4, + .main #other-content .social a:hover { + color: #fff176; } + .main #other-content .others h4, + .main #other-content .others a:hover { + color: #81c784; } + .main #other-content .funky h4, + .main #other-content .funky a:hover { + color: #4db6ac; } + .main #other-content .purple h4, + .main #other-content .purple a:hover { + color: #9575cd; } + .main #other-content .upvoty h4, + .main #other-content .upvoty a:hover { + color: #ff8a65; } + .main #other-content .indigo h4, + .main #other-content .indigo a:hover { + color: #7986cb; } + .main #other-content .foxxy h4, + .main #other-content .foxxy a:hover { + color: #a1887f; } + +.settings-modal { + display: none; + position: fixed; + z-index: 3; + width: 80vw; + height: 80vh; + overflow: auto; + background: #fff; + color: #212121; + padding: 15px; } + .settings-modal .modal-content { + width: 100%; + height: 100%; } + .settings-modal .close { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; } + .settings-modal .close:hover, .settings-modal .close:focus { + color: black; + text-decoration: none; + cursor: pointer; } + .settings-modal .release { + color: #6b7280; } + .settings-modal .update--available { + visibility: hidden; + color: #6b7280; } + .settings-modal .backup-import { + display: flex; + align-items: center; } + .settings-modal .backup-import .btn { + box-shadow: none; + border: none; + text-align: center; + border-radius: 5px; + padding: 4px 16px; + cursor: pointer; + font-size: medium; + color: white; + background-color: #37474F; } + .settings-modal .backup-import .import-btn { + margin-left: 10px; } + +#settings-cog { + width: 23px; + height: 23px; + position: absolute; + bottom: 25px; + right: 25px; + transition: 2s ease-in; + display: none; } + #settings-cog:hover .cog { + fill: white; + stroke: white; + transition: 2s ease-in; } diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold-Italic.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold-Italic.woff Binary files differnew file mode 100755 index 0000000..0ec4bff --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold-Italic.woff diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold.woff Binary files differnew file mode 100755 index 0000000..dd2e280 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Bold.woff diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold-Italic.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold-Italic.woff Binary files differnew file mode 100755 index 0000000..8da8fe0 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold-Italic.woff diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold.woff Binary files differnew file mode 100755 index 0000000..4603980 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-ExtraBold.woff diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Italic.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Italic.woff Binary files differnew file mode 100755 index 0000000..b3172f2 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Italic.woff diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium-Italic.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium-Italic.woff Binary files differnew file mode 100755 index 0000000..5e95753 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium-Italic.woff diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium.woff Binary files differnew file mode 100755 index 0000000..18ad34c --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Medium.woff diff --git a/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Regular.woff b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Regular.woff Binary files differnew file mode 100755 index 0000000..69b14ea --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff/JetBrainsMono-Regular.woff diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold-Italic.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold-Italic.woff2 Binary files differnew file mode 100755 index 0000000..34b5c69 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold-Italic.woff2 diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold.woff2 Binary files differnew file mode 100755 index 0000000..84a008a --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Bold.woff2 diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold-Italic.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold-Italic.woff2 Binary files differnew file mode 100755 index 0000000..09865c5 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold-Italic.woff2 diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold.woff2 Binary files differnew file mode 100755 index 0000000..a8e7702 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-ExtraBold.woff2 diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Italic.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Italic.woff2 Binary files differnew file mode 100755 index 0000000..85fd468 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Italic.woff2 diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium-Italic.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium-Italic.woff2 Binary files differnew file mode 100755 index 0000000..f22fa8b --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium-Italic.woff2 diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium.woff2 Binary files differnew file mode 100755 index 0000000..45a63c1 --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Medium.woff2 diff --git a/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Regular.woff2 b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Regular.woff2 Binary files differnew file mode 100755 index 0000000..d5b94cb --- /dev/null +++ b/config/qutebrowser/startpage/fonts/woff2/JetBrainsMono-Regular.woff2 diff --git a/config/qutebrowser/startpage/index.html b/config/qutebrowser/startpage/index.html new file mode 100755 index 0000000..3f7a84c --- /dev/null +++ b/config/qutebrowser/startpage/index.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>startpage</title> + <!--Custom CSS--> + <link rel="stylesheet" href="css/main.css"> +</head> +<body> + </div> + <div id="main" class="main"> + <div id="message"> + <h1 id="message-text">Qutebrowser</h1> + </div> + </body> +</html> diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc new file mode 100755 index 0000000..e8928da --- /dev/null +++ b/config/sxhkd/sxhkdrc @@ -0,0 +1,105 @@ +# For some keybinds to work properly some scripts from "https://github.com/thei0n/slcf" must be installed + +######### General keybinds ########## + +#Launch terminal +alt + Return + [ -z $TERMINAL ] && alacritty || $TERMINAL + +#Launch browser +alt + shift + Return + [ -z $BROWSER ] && qutebrowser || $BROWSER + +#Change wallpaper +alt + shift + v + setwp ~/.config/wallpapers + +#Launch terminal alternative +alt + shift + n + [ -z $TERMINAL_ALTERNATIVE ] && kitty || $TERMINAL_ALTERNATIVE + +#Kill all the alternative terminal instances +alt + shift + m + [ -z $TERMINAL_ALTERNATIVE ] && killall kitty || killall $TERMINAL_ALTERNATIVE + +#Open gruvbox themed dmenu +alt + d + dmenu_run -i -nb '#282828' -nf '#ebdbb2' -sb '#ebdbb2' -sf '#1f222d' -fn 'Roboto:bold:pixelsize=14' + +#passmenu +alt+p + passmenu + +#Volume buttons +XF86AudioRaiseVolume + sVolume +10 + +XF86AudioLowerVolume + sVolume -10 + +XF86AudioMute + sVolume --toggle + +#Brightness buttons +XF86MonBrightnessUp + sBrightness +5 +XF86MonBrightnessDown + sBrightness -5 + +#Screenshot +alt + shift + s + sScreenshot + + +######### BSPWM specific keybinds ########## + +#Change workspaces +alt + {_,shift + }{1-9} + bspc {desktop -f,node -d} '^{1-9,10}' + +#Change Focus +alt + {h,j,k,l} + bspc node -f {west,south,north,east} + +#Reload bspwm +alt + shift + r + bspc wm -r + +#Exit bspwm +alt + shift + 0 + killall bspwm + +#Toggle fullscreen mode +alt + f + bspc node -t fullscreen + +#Toggle titled mode +alt + a + bspc node -t tiled + +#Toggle floating mode +alt+s + bspc node -t floating + +#Move windowns in floating mode +super + shift + {h,j,k,l} + bspc node -v {-20 0,0 20,0 -20,20 0} + +#Kill the focused window +alt + shift + q + bspc node -c + +# Focus next floating window +alt + space + bspc node -f next.floating + +#Expanding the focused node +super + {h,j,k,l} + bspc node -z {left -20 0,bottom 0 20, bottom 0 -20, left 20 0} + +#moving the focused node +alt + shift + {h,j,k,l} + bspc node -s {west,south,north,east} + +alt + r + bspc node @/ -R 90 diff --git a/config/zathura/zathurarc b/config/zathura/zathurarc new file mode 100755 index 0000000..1e9ba45 --- /dev/null +++ b/config/zathura/zathurarc @@ -0,0 +1,48 @@ +# Gruvbox themed zathura theme at "https://github.com/eastack/zathura-gruvbox" + +set notification-error-bg "#282828" # bg +set notification-error-fg "#fb4934" # bright:red +set notification-warning-bg "#282828" # bg +set notification-warning-fg "#fabd2f" # bright:yellow +set notification-bg "#282828" # bg +set notification-fg "#b8bb26" # bright:green + +set completion-bg "#504945" # bg2 +set completion-fg "#ebdbb2" # fg +set completion-group-bg "#3c3836" # bg1 +set completion-group-fg "#928374" # gray +set completion-highlight-bg "#83a598" # bright:blue +set completion-highlight-fg "#504945" # bg2 + +# Define the color in index mode +set index-bg "#504945" # bg2 +set index-fg "#ebdbb2" # fg +set index-active-bg "#83a598" # bright:blue +set index-active-fg "#504945" # bg2 + +set inputbar-bg "#282828" # bg +set inputbar-fg "#ebdbb2" # fg + +set statusbar-bg "#504945" # bg2 +set statusbar-fg "#ebdbb2" # fg + +set highlight-color "#fabd2f" # bright:yellow +set highlight-active-color "#fe8019" # bright:orange + +set default-bg "#282828" # bg +set default-fg "#ebdbb2" # fg +set render-loading true +set render-loading-bg "#282828" # bg +set render-loading-fg "#ebdbb2" # fg + +# Recolor book content's color +set recolor-lightcolor "#282828" # bg +set recolor-darkcolor "#ebdbb2" # fg +set recolor "true" +# set recolor-keephue true # keep original color + +map i recolor +map J zoom in +map K zoom out +set selection-clipboard clipboard +set guioptions none diff --git a/config/zsh/zshrc b/config/zsh/zshrc new file mode 100755 index 0000000..c604ad1 --- /dev/null +++ b/config/zsh/zshrc @@ -0,0 +1,97 @@ +# This config is a fork of Luke Smith's zshrc at "https://github.com/LukeSmithxyz/voidrice" + +PROMPT="%B%F{red}%(?..%? )%B%F{blue}%n%b%f@%m %B%~ %% %b" + +#git integration +autoload -Uz vcs_info +precmd_vcs_info() { vcs_info } +precmd_functions+=( precmd_vcs_info ) +setopt prompt_subst +RPROMPT='%B${vcs_info_msg_0_}' +zstyle ':vcs_info:git:*' formats '%b' + +# History in cache directory: +HISTSIZE=1000000000 +SAVEHIST=1000000000 +HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history" + + +# Basic auto/tab complete: +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) # Include hidden files. + + +# vi mode +bindkey -v +bindkey '^R' history-incremental-search-backward +export KEYTIMEOUT=1 + +# Use vim keys in tab complete menu: +bindkey -M menuselect 'h' vi-backward-char +bindkey -M menuselect 'k' vi-up-line-or-history +bindkey -M menuselect 'l' vi-forward-char +bindkey -M menuselect 'j' vi-down-line-or-history +bindkey -v '^?' backward-delete-char + + +lfcd () { + # `command` is needed in case `lfcd` is aliased to `lf` + cd "$(command lf -print-last-dir "$@")" +} + +# Change cursor shape for different vi modes. +function zle-keymap-select () { + case $KEYMAP in + vicmd) echo -ne '\e[1 q';; # block + viins|main) echo -ne '\e[5 q';; # beam + esac +} + + +zle -N zle-keymap-select +zle-line-init() { + zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) + echo -ne "\e[5 q" +} +zle -N zle-line-init +echo -ne '\e[5 q' # Use beam shape cursor on startup. +preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. + + +# Options +setopt autocd # Automatically cd into typed directory. +# stty stop undef # Disable ctrl-s to freeze terminal. +setopt interactive_comments +unsetopt nomatch +setopt INC_APPEND_HISTORY # Adds command to history when they are run +setopt HIST_FIND_NO_DUPS # Doesn't show duplicate commands when backward searching + +# Aliases +[ -f $XINITRC ] && alias startx="startx $XINITRC" +[ -x "$(command -v nvim)" ] && alias vim="nvim" +alias ls="ls -A --color=auto" +alias ping="ping -c 2" +alias clear="clear -x" +alias open="xdg-open" +alias lf="lfcd" +alias vim="nvim" +alias touchOn="synclient TouchpadOff=0" +alias touchOff="synclient TouchpadOff=1" + +# Systemd and Arch linux specific aliases +alias pacman="sudo pacman" +alias systemctl="sudo systemctl" +alias arch-wiki="cd /usr/share/doc/arch-wiki/html/en/" +alias is="systemctl stop NetworkManager" +alias blue="sudo systemctl start bluetooth" +alias net="sudo systemctl start NetworkManager" + +# Directory change aliases +alias gp="cd ~/proj" +alias gt="cd ~/testProj" +alias gc="cd ~/.config" +alias gu="cd /usr/local/bin" + |