From 1f34c0e4eeefd2612dce2781ef24ea958bd57a29 Mon Sep 17 00:00:00 2001 From: Dhanus M Lal Date: Sun, 5 Jun 2022 13:59:34 +0530 Subject: [PATCH] new files from arch added --- .Xresources | 45 +++++-- .Xresources.pop | 18 +++ .bash_profile | 10 ++ .bashrc | 148 ++------------------- .bashrc.pop | 142 ++++++++++++++++++++ .vimrc | 20 --- .vimrc.pop | 32 +++++ .xinitrc | 31 +++++ i3.pop/config | 244 +++++++++++++++++++++++++++++++++++ {i3 => i3.pop}/i3blocks.conf | 0 i3/config | 86 ++++-------- i3status/i3status.conf | 53 ++++++++ toInstall | 28 ++++ 13 files changed, 631 insertions(+), 226 deletions(-) create mode 100644 .Xresources.pop create mode 100644 .bash_profile create mode 100644 .bashrc.pop create mode 100644 .vimrc.pop create mode 100644 .xinitrc create mode 100644 i3.pop/config rename {i3 => i3.pop}/i3blocks.conf (100%) create mode 100644 i3status/i3status.conf create mode 100644 toInstall diff --git a/.Xresources b/.Xresources index 7ccfe6d..a45e92f 100644 --- a/.Xresources +++ b/.Xresources @@ -1,18 +1,43 @@ -#include "/home/dhanus/.rxvt_colors/mocha.dark" - URxvt.scrollBar: False +! URxvt.font: xft: FantasqueSansMono Nerd Font:size=11 URxvt.font: xft: Hack Nerd Font:size=11 -URxvt.perl-lib: $HOME/.urxvt/ext/ -!/usr/lib/urxvt/perl/ +! special +URxvt.foreground: #c5c8c6 +URxvt.background: #1d1f21 +URxvt.cursorColor: #c5c8c6 -URxvt.perl-ext-common: fullscreen, resize-font +! black +URxvt.color0: #282a2e +URxvt.color8: #373b41 -URxvt.keysym.F11: perl:fullscreen:switch +! red +URxvt.color1: #a54242 +URxvt.color9: #cc6666 + +! green +URxvt.color2: #8c9440 +URxvt.color10: #b5bd68 + +! yellow +URxvt.color3: #de935f +URxvt.color11: #f0c674 + +! blue +URxvt.color4: #5f819d +URxvt.color12: #81a2be + +! magenta +URxvt.color5: #85678f +URxvt.color13: #b294bb + +! cyan +URxvt.color6: #5e8d87 +URxvt.color14: #8abeb7 + +! white +URxvt.color7: #707880 +URxvt.color15: #c5c8c6 -URxvt.keysym.C-minus: resize-font:smaller -URxvt.keysym.C-plus: resize-font:bigger -URxvt.keysym.C-equal: resize-font:reset -URxvt.keysym.C-question: resize-font:show diff --git a/.Xresources.pop b/.Xresources.pop new file mode 100644 index 0000000..26a0f84 --- /dev/null +++ b/.Xresources.pop @@ -0,0 +1,18 @@ +#include "/home/dhanus/.rxvt_colors/mocha.dark" + +URxvt.scrollBar: False +URxvt.font: xft: Hack Nerd Font:size=11 + + + + URxvt.perl-lib: $HOME/.urxvt/ext/ +!/usr/lib/urxvt/perl/ + +URxvt.perl-ext-common: fullscreen, resize-font + +URxvt.keysym.F11: perl:fullscreen:switch + +URxvt.keysym.C-minus: resize-font:smaller +URxvt.keysym.C-plus: resize-font:bigger +URxvt.keysym.C-equal: resize-font:reset +URxvt.keysym.C-question: resize-font:show diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..8ee29f2 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,10 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +if [ $(basename $(exec tty)) == tty1 ] +then + exec startx >/dev/null 2>&1 +fi diff --git a/.bashrc b/.bashrc index 18e6dfa..0f87619 100644 --- a/.bashrc +++ b/.bashrc @@ -1,142 +1,16 @@ -# ~/.bashrc: executed by bash(1) for non-login shells. -# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) -# for examples +# +# ~/.bashrc +# # If not running interactively, don't do anything -case $- in - *i*) ;; - *) return;; -esac +[[ $- != *i* ]] && return -# don't put duplicate lines or lines starting with space in the history. -# See bash(1) for more options -HISTCONTROL=ignoreboth +alias ls='ls --color=auto' +alias grep='grep --color=auto' +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' -# append to the history file, don't overwrite it -shopt -s histappend +PS1="[\[\e[01;32m\]\u@\h \[\e[00;33m\]\W\[\e[00m\]]\$ " -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=1000 -HISTFILESIZE=2000 - -# check the window size after each command and, if necessary, -# update the values of LINES and COLUMNS. -shopt -s checkwinsize - -# If set, the pattern "**" used in a pathname expansion context will -# match all files and zero or more directories and subdirectories. -#shopt -s globstar - -# make less more friendly for non-text input files, see lesspipe(1) -[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" - -# set variable identifying the chroot you work in (used in the prompt below) -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) -fi - -# set a fancy prompt (non-color, unless we know we "want" color) -case "$TERM" in - xterm-color|*-256color) color_prompt=yes;; -esac - -# uncomment for a colored prompt, if the terminal has the capability; turned -# off by default to not distract the user: the focus in a terminal window -# should be on the output of commands, not on the prompt -#force_color_prompt=yes - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -if [ $TERM == alacritty ] -then - color_prompt=yes -fi - -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi -unset color_prompt force_color_prompt - -# If this is an xterm set the title to user@host:dir -case "$TERM" in -xterm*|rxvt*) - PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" - ;; -*) - ;; -esac - -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' - - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' -fi - -# colored GCC warnings and errors -#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' - -# some more ls aliases -alias ll='ls -alF' -alias la='ls -A' -alias l='ls -CF' - -# Add an "alert" alias for long running commands. Use like so: -# sleep 10; alert -alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' - -# Alias definitions. -# You may want to put all your additions into a separate file like -# ~/.bash_aliases, instead of adding them here directly. -# See /usr/share/doc/bash-doc/examples in the bash-doc package. - -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi - -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi -[ -r /home/dhanus/.byobu/prompt ] && . /home/dhanus/.byobu/prompt #byobu-prompt# - -# >>> conda initialize >>> -# !! Contents within this block are managed by 'conda init' !! -__conda_setup="$('/home/dhanus/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" -if [ $? -eq 0 ]; then - eval "$__conda_setup" -else - if [ -f "/home/dhanus/anaconda3/etc/profile.d/conda.sh" ]; then - . "/home/dhanus/anaconda3/etc/profile.d/conda.sh" - else - export PATH="/home/dhanus/anaconda3/bin:$PATH" - fi -fi -unset __conda_setup -# <<< conda initialize <<< - - -# ~/.bashrc -. "$HOME/.cargo/env" +# default +# PS1='[\u@\h \W]\$ ' diff --git a/.bashrc.pop b/.bashrc.pop new file mode 100644 index 0000000..18e6dfa --- /dev/null +++ b/.bashrc.pop @@ -0,0 +1,142 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +case $- in + *i*) ;; + *) return;; +esac + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +#shopt -s globstar + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# set variable identifying the chroot you work in (used in the prompt below) +if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then + debian_chroot=$(cat /etc/debian_chroot) +fi + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in + xterm-color|*-256color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +#force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +if [ $TERM == alacritty ] +then + color_prompt=yes +fi + +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +else + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' +fi +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" + ;; +*) + ;; +esac + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# colored GCC warnings and errors +#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + +# some more ls aliases +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' + +# Add an "alert" alias for long running commands. Use like so: +# sleep 10; alert +alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi +[ -r /home/dhanus/.byobu/prompt ] && . /home/dhanus/.byobu/prompt #byobu-prompt# + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/dhanus/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/dhanus/anaconda3/etc/profile.d/conda.sh" ]; then + . "/home/dhanus/anaconda3/etc/profile.d/conda.sh" + else + export PATH="/home/dhanus/anaconda3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + + +# ~/.bashrc +. "$HOME/.cargo/env" diff --git a/.vimrc b/.vimrc index ba7fe61..3237f0f 100644 --- a/.vimrc +++ b/.vimrc @@ -7,26 +7,6 @@ set tabstop=4 softtabstop=4 set autoindent set incsearch -call plug#begin('~/.vim/plugged') - Plug 'tpope/vim-fugitive' - Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } - Plug 'vim-airline/vim-airline' - "Plug 'morhetz/gruvbox' - Plug '/vim-airline/vim-airline-themes' - Plug 'Raimondi/delimitMate' - Plug 'vim-syntastic/syntastic' - Plug 'rafi/awesome-vim-colorschemes' - Plug 'ryanoasis/vim-devicons' - Plug 'sheerun/vim-polyglot' - "Plug 'davidhalter/jedi-vim' - "Plug 'ryanoasis/nerd-fonts' - -call plug#end() - -let g:airline#extensions#tabline#enabled = 1 -let g:airline_powerline_fonts = 1 -"colorscheme onedark -"let g:airline_theme='gruvbox' map :!pdflatex main.tex map :!zathura main.pdf & disown diff --git a/.vimrc.pop b/.vimrc.pop new file mode 100644 index 0000000..ba7fe61 --- /dev/null +++ b/.vimrc.pop @@ -0,0 +1,32 @@ +"file created by dhanus on 21-July-2021 +syntax on +set nu rnu +set clipboard=unnamedplus +set encoding=utf-8 +set tabstop=4 softtabstop=4 +set autoindent +set incsearch + +call plug#begin('~/.vim/plugged') + Plug 'tpope/vim-fugitive' + Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } + Plug 'vim-airline/vim-airline' + "Plug 'morhetz/gruvbox' + Plug '/vim-airline/vim-airline-themes' + Plug 'Raimondi/delimitMate' + Plug 'vim-syntastic/syntastic' + Plug 'rafi/awesome-vim-colorschemes' + Plug 'ryanoasis/vim-devicons' + Plug 'sheerun/vim-polyglot' + "Plug 'davidhalter/jedi-vim' + "Plug 'ryanoasis/nerd-fonts' + +call plug#end() + +let g:airline#extensions#tabline#enabled = 1 +let g:airline_powerline_fonts = 1 +"colorscheme onedark +"let g:airline_theme='gruvbox' + +map :!pdflatex main.tex +map :!zathura main.pdf & disown diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..02a71ea --- /dev/null +++ b/.xinitrc @@ -0,0 +1,31 @@ +#!/bin/bash + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ] +then + xrdb -merge $sysresources +fi + +if [ -f $userresources ] +then + xrdb -merge $userresources +fi + +if [ -f $sysmodmap ] +then + xmodmap $sysmodmap +fi + +if [ -f $usermodmap ] +then + xmodmap $usermodmap +fi + +exec i3 + diff --git a/i3.pop/config b/i3.pop/config new file mode 100644 index 0000000..26513e5 --- /dev/null +++ b/i3.pop/config @@ -0,0 +1,244 @@ +default_border pixel 1 +default_floating_border pixel 1 +hide_edge_borders both + +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +#font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +font pango:DejaVu Sans Mono 8 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +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 light -A 5 # ixrandr --output eDP-1 --brightness 1ncrease screen brightness +bindsym XF86MonBrightnessDown exec light -U 5 # xrandr --output eDP-1 --brightness 0.5 decrease screen brightness + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec urxvt #i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l 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 + +# split in horizontal orientation +bindsym $mod+o 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 + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +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 h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +# bar { + # i3status + # status_command i3blocks -c ~/.config/i3/i3blocks.conf #i3status + + # font pango:Hack Nerd Font 8 + # position top + # status_command /home/dhanus/.local/bin/bumblebee-status \ + # -m memory disk network_traffic cpu amixer battery date time\ + # -t gruvbox-powerline\ + # -p root.path=/ time.format="%H:%M:%S" date.format="%a, %b %d %Y"\ + # amixer.interval=1s + + #cpu.interval=5s battery.interval=30s memory.interval=5s + # -p \ + # -t +# } +# +# Polybar +exec_always --no-startup-id $HOME/.config/polybar/launch.sh + +exec xinput set-prop 11 314 1 +exec xinput set-prop 11 322 1 + + +bindsym $mod+shift+x exec i3lock --color 000000 + + +set $bg-color-foc #1c2423 +set $bg-color #000000 + +# class border backgr. text indicator child_border +client.focused "$bg-color-foc" #1c2423 #ffffff #2e9ef4 #285577 +client.focused_inactive "$bg-color-foc" #35f676a #ffffff #484e50 #5f676a +client.unfocused #333333 #222222 #888888 #292d2e #222222 +client.urgent #2f343a #900000 #ffffff #900000 #900000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + +client.background #ffffff + + + +exec diodon +exec picom -b +exec xrdb -load /home/dhanus/.Xresources + + +bindsym $mod+b exec brave-browser -incognito +bindsym $mod+shift+b exec brave-browser + + +bindsym Print exec gnome-screenshot +bindsym $mod+Print exec gnome-screenshot -a + + + +# Wallpaper +exec_always feh --bg-scale ~/Pictures/wallpaper15.jpg diff --git a/i3/i3blocks.conf b/i3.pop/i3blocks.conf similarity index 100% rename from i3/i3blocks.conf rename to i3.pop/i3blocks.conf diff --git a/i3/config b/i3/config index 26513e5..413c385 100644 --- a/i3/config +++ b/i3/config @@ -1,7 +1,9 @@ +# no borders for windows default_border pixel 1 default_floating_border pixel 1 hide_edge_borders both + # This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # @@ -17,12 +19,16 @@ set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -#font pango:monospace 8 +# font pango:monospace 8 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). font pango:DejaVu Sans Mono 8 +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 + # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. @@ -41,15 +47,15 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT 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 light -A 5 # ixrandr --output eDP-1 --brightness 1ncrease screen brightness -bindsym XF86MonBrightnessDown exec light -U 5 # xrandr --output eDP-1 --brightness 0.5 decrease screen brightness +# Use xrandr to adjust screen brightness +bindsym XF86MonBrightnessUp exec xbacklight -inc 5 +bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal -bindsym $mod+Return exec urxvt #i3-sensible-terminal +bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill @@ -164,10 +170,10 @@ mode "resize" { # 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 h resize shrink width 10 px or 10 ppt - bindsym j resize grow height 10 px or 10 ppt - bindsym k resize shrink height 10 px or 10 ppt - bindsym l resize grow width 10 px or 10 ppt + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt @@ -185,60 +191,22 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -# bar { - # i3status - # status_command i3blocks -c ~/.config/i3/i3blocks.conf #i3status - - # font pango:Hack Nerd Font 8 - # position top - # status_command /home/dhanus/.local/bin/bumblebee-status \ - # -m memory disk network_traffic cpu amixer battery date time\ - # -t gruvbox-powerline\ - # -p root.path=/ time.format="%H:%M:%S" date.format="%a, %b %d %Y"\ - # amixer.interval=1s - - #cpu.interval=5s battery.interval=30s memory.interval=5s - # -p \ - # -t -# } -# -# Polybar -exec_always --no-startup-id $HOME/.config/polybar/launch.sh - -exec xinput set-prop 11 314 1 -exec xinput set-prop 11 322 1 - +bar { + status_command i3status -c /home/dhanus/.config/i3status/i3status.conf + position top + font pango:Hack Nerd Font 7 +} +# Custom bindings: bindsym $mod+shift+x exec i3lock --color 000000 - - -set $bg-color-foc #1c2423 -set $bg-color #000000 - -# class border backgr. text indicator child_border -client.focused "$bg-color-foc" #1c2423 #ffffff #2e9ef4 #285577 -client.focused_inactive "$bg-color-foc" #35f676a #ffffff #484e50 #5f676a -client.unfocused #333333 #222222 #888888 #292d2e #222222 -client.urgent #2f343a #900000 #ffffff #900000 #900000 -client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c - -client.background #ffffff +bindsym $mod+b exec brave -incognito +bindsym $mod+shift+b exec brave -exec diodon -exec picom -b -exec xrdb -load /home/dhanus/.Xresources +# touch pad configuration +exec xinput set-prop 'Synaptics TM3096-006' 'libinput Tapping Enabled' 1 +exec xinput set-prop 'Synaptics TM3096-006' 'libinput Natural Scrolling Enabled' 1 - -bindsym $mod+b exec brave-browser -incognito -bindsym $mod+shift+b exec brave-browser - - -bindsym Print exec gnome-screenshot -bindsym $mod+Print exec gnome-screenshot -a - - - -# Wallpaper +# wallpaper exec_always feh --bg-scale ~/Pictures/wallpaper15.jpg diff --git a/i3status/i3status.conf b/i3status/i3status.conf new file mode 100644 index 0000000..ee9027f --- /dev/null +++ b/i3status/i3status.conf @@ -0,0 +1,53 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 5 +} + +# order += "ipv6" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" +} + +disk "/" { + format = "%avail" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%Y-%m-%d (%a) %H:%M:%S" +} diff --git a/toInstall b/toInstall new file mode 100644 index 0000000..de8e638 --- /dev/null +++ b/toInstall @@ -0,0 +1,28 @@ +networkmanager +vim +grub +sudo +bluez +bluez-utils +git + +base-devel + +xorg-server +xorg-apps +(graphics driver) + +yay + +i3-wm +i3lock +i3status +dmenu +feh + +neofetch +htop +rxvt-unicode +brave +nautilus +