From 0e88f44a72d5ddcde202ff413b1961144bfc19fa Mon Sep 17 00:00:00 2001 From: eneller Date: Sat, 20 Aug 2022 12:31:27 +0200 Subject: [PATCH] alias stuff --- .bashrc | 25 ------------------------- .config/alacritty/alacritty.yml | 1 + .config/i3/config | 9 ++++++--- .config/nvim/init.lua | 2 +- .config/shell/alias.sh | 25 +++++++++++++++++++++++++ .profile | 32 +++++++++++++++++++++++++------- 6 files changed, 58 insertions(+), 36 deletions(-) diff --git a/.bashrc b/.bashrc index 34d9b95..9c63fcd 100644 --- a/.bashrc +++ b/.bashrc @@ -30,7 +30,6 @@ colors() { echo; echo done } -title(){} [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion @@ -114,27 +113,3 @@ shopt -s expand_aliases # Enable history appending instead of overwriting. #139609 shopt -s histappend -# -# # ex - archive extractor -# # usage: ex -ex () -{ - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xjf $1 ;; - *.tar.gz) tar xzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xf $1 ;; - *.tbz2) tar xjf $1 ;; - *.tgz) tar xzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1;; - *.7z) 7z x $1 ;; - *) echo "'$1' cannot be extracted via ex()" ;; - esac - else - echo "'$1' is not a valid file" - fi -} diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 4d49783..c0762a1 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -6,6 +6,7 @@ window: y: 7 opacity: 1.0 dynamic_title: true + decorations: none #font: colors: # Default colors diff --git a/.config/i3/config b/.config/i3/config index 630db6d..b150d89 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -84,8 +84,8 @@ bindsym $mod+Shift+r exec --no-startup-id winresize bindsym $mod+f fullscreen toggle bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill bindsym $mod+Shift+t layout toggle tabbed splith -bindsym $mod+Shift+v split h;exec notify-send 'tile horizontally' -bindsym $mod+v split v;exec notify-send 'tile vertically' +bindsym $mod+Shift+v split h;exec notify-send 'tile horizontally |' +bindsym $mod+v split v;exec notify-send 'tile vertically -' # No focus on mouse over (allows scrolling without changing focus) focus_follows_mouse no @@ -172,5 +172,8 @@ exec --no-startup-id nm-applet exec --no-startup-id blueman-applet exec --no-startup-id pamac-tray exec --no-startup-id xfce4-power-manager -exec --no-startup-id volumeicon +#exec --no-startup-id volumeicon +exec --no-startup-id start-pulseaudio-x11 +exec --no-startup-id pa-applet +bindsym $mod+Ctrl+m exec pavucontrol diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index f87a384..102c559 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -5,7 +5,7 @@ vim.o.termguicolors = true vim.cmd('colorscheme monokai') -- set colorscheme vim.o.syntax = 'on' vim.cmd('set title') -vim.opt.titlestring = [[%f %h%m%r%w ]] +vim.opt.titlestring = [[%{v:progname}: %f %h%m%r%w ]] -- vim.opt.titlestring = [[%f %h%m%r%w %{v:progname} (%{tabpagenr()} of %{tabpagenr('$')})]] vim.o.errorbells = false vim.o.smartcase = true diff --git a/.config/shell/alias.sh b/.config/shell/alias.sh index 25938e2..d771154 100644 --- a/.config/shell/alias.sh +++ b/.config/shell/alias.sh @@ -49,3 +49,28 @@ title() { echo -e "\e]2;$1\007"; } + +# +# # ex - archive extractor +# # usage: ex +ex () +{ + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xjf $1 ;; + *.tar.gz) tar xzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xf $1 ;; + *.tbz2) tar xjf $1 ;; + *.tgz) tar xzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1;; + *.7z) 7z x $1 ;; + *) echo "'$1' cannot be extracted via ex()" ;; + esac + else + echo "'$1' is not a valid file" + fi +} diff --git a/.profile b/.profile index c160d96..a816478 100644 --- a/.profile +++ b/.profile @@ -19,13 +19,6 @@ alias code='code --extensions-dir "$XDG_DATA_HOME/vscode"' alias vscodium='vscodium --extensions-dir "$XDG_DATA_HOME/vscode"' export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" -# default applications -export EDITOR=/usr/bin/nvim -export BROWSER=/usr/bin/firefox -export TERMINAL=/usr/bin/alacritty -export EXPLORER=/usr/bin/thunar -export MAILCLIENT=/usr/bin/neomutt -export LAUNCHER=dmenu_run # THEME @@ -40,3 +33,28 @@ export GREEN="#A6E22E" export ORANGE="#FD971F" export YELLOW="#E6DB74" export PURPLE="#AE81FF" +export FONT="Noto" +export FONTSIZE="12" + +## define the font for dmenu to be used +DMENU_FN="$FONT-$FONTSIZE" +## background colour for unselected menu-items +DMENU_NB="#000000" +## textcolour for unselected menu-items +DMENU_NF=$WHITE +## background colour for selected menu-items +DMENU_SB=$BLUE +## textcolour for selected menu-items +DMENU_SF="#000000" +## command for the terminal application to be used: +TERMINAL_CMD="alacritty -e" +## export our variables +DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB" + +# default applications +export EDITOR=/usr/bin/nvim +export BROWSER=/usr/bin/firefox +export TERMINAL=/usr/bin/alacritty +export EXPLORER=/usr/bin/thunar +export MAILCLIENT=/usr/bin/neomutt +export LAUNCHER="dmenu_run $DMENU_OPTIONS"