From 9e34945df97a8b0893538c02f20ef0c541feed64 Mon Sep 17 00:00:00 2001 From: Eric de Graaf Date: Sun, 23 May 2021 22:33:24 +0200 Subject: [PATCH] Update after fresh i3 install on demo environment --- Xresources | 2 +- config/autorandr/autorandr | 1 + config/i3/config | 100 ++++++++++--------------------------- config/picom/picom | 1 + config/polybar/polybar | 1 + make-symlinks.sh | 8 +-- xfiles/themes/monokay | 37 ++++++++++++++ xfiles/xfiles | 1 + 8 files changed, 69 insertions(+), 82 deletions(-) create mode 120000 config/autorandr/autorandr create mode 120000 config/picom/picom create mode 120000 config/polybar/polybar create mode 100644 xfiles/themes/monokay create mode 120000 xfiles/xfiles diff --git a/Xresources b/Xresources index 21ed2e4..d76fb40 100644 --- a/Xresources +++ b/Xresources @@ -48,7 +48,7 @@ URxvt.keysym.M-v: perl:clipboard:paste URxvt*depth: 32 URxvt.background: [80]#3b3228 -#include "/home/egraaf/.xfiles/themes/gruvbox" +#include "/home/demo/.xfiles/themes/monokay" URxvt.font: xft:fnt1:size=fntsz2 diff --git a/config/autorandr/autorandr b/config/autorandr/autorandr new file mode 120000 index 0000000..6dd9f11 --- /dev/null +++ b/config/autorandr/autorandr @@ -0,0 +1 @@ +/home/demo/git/dotfiles/config/autorandr/ \ No newline at end of file diff --git a/config/i3/config b/config/i3/config index 74800c6..1ad0139 100644 --- a/config/i3/config +++ b/config/i3/config @@ -8,14 +8,13 @@ # To get a config file with the same key positions, but for your current # layout, use the i3-config-wizard # -set $HOME /home/egraaf +set $HOME /home/demo set $exe exec --no-startup-id -font pango:Terminus 14px +font pango:Terminus 10px # 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. #$exe xss-lock --transfer-sleep-lock -- i3lock --nofork - bindsym Control+Mod1+l $exe LANG=C LC_ALL=C xlock @@ -30,10 +29,10 @@ set $mod Mod4 # use these keys for focus, movement, and resize directions when reaching for # the arrows is not convenient -set $up l -set $down k -set $left j -set $right semicolon +set $up k +set $down j +set $left h +set $right l # use Mouse+Mod1 to drag floating windows to their wanted position floating_modifier Mod1 @@ -42,23 +41,14 @@ floating_modifier Mod1 bindsym Mod1+Tab $exe rofi -modi window -show window # start a terminal -#bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Return exec xterm +bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+b exec firefox -bindsym $mod+c exec chromium # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) -#bindsym $mod+d exec dmenu_run -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -#bindsym $mod+d $exe j4-dmenu-desktop bindsym $mod+d $exe rofi -show drun -#bindsym $mod+d $exe rofi -show drun -font 'Noto Sans 13' -#bindsym $mod+d $exe rofi -show drun -modi drun -location 1 -width 100 -lines 2 -line-margin 0 -line-padding 1 -separator-style none -font 'Noto Sans 12' -columns 9 -bw 0 -hide-scrollbar -kb-row-select 'Tab' -kb-row-tab '' # change focus bindsym $mod+$left focus left bindsym $mod+$down focus down @@ -66,17 +56,10 @@ 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 -bindsym $mod+Left $exe i3fyra -f l -bindsym $mod+Down $exe i3fyra -f d -bindsym $mod+Up $exe i3fyra -f u -bindsym $mod+Right $exe i3fyra -f r - -bindsym $mod+Tab $exec i3fyra -t r -bindsym $mod+Shift+Tab $exec i3fyra -t l +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 @@ -85,17 +68,13 @@ 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 -bindsym $mod+Shift+Left $exe i3fyra -m l -bindsym $mod+Shift+Down $exe i3fyra -m d -bindsym $mod+Shift+Up $exe i3fyra -m u -bindsym $mod+Shift+Right $exe i3fyra -m r +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+h split h +#bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v @@ -109,8 +88,7 @@ bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating -#bindsym $mod+Shift+space floating toggle -bindsym $mod+Shift+space $exe i3fyra -a +bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle @@ -118,9 +96,6 @@ bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent -# focus the child container -#bindsym $mod+d focus child - # move the currently focused window to the scratchpad bindsym $mod+Shift+minus move scratchpad @@ -210,53 +185,28 @@ bindsym $mod+r mode "resize" bindsym XF86MonBrightnessUp exec xbacklight -inc 3 # increase screen brightness bindsym XF86MonBrightnessDown exec xbacklight -dec 3 # decrease screen brightness -#Assign workspaces +#Assign workspaces, always put virtualbox on Workspace 8 #assign [class="^VirtualBox$"] 8 -#https://github.com/budlabs/youtube/blob/master/letslinux/003-i3fyra/i3config -#$exe i3fyra -l 'AB=-450 BD=-200 AC=-100' +############## # autostarts -#$exe kmix +############## $exe compton -b -$exe feh --randomize --bg-fill ~/Pictures/Backgrounds\ Wallpapers\ HD/* -exec autorandr -l home -$exe copyq +$exe feh --randomize --bg-fill ~/Pictures/Wallpapers/* +#exec autorandr -l home +#$exe copyq $exe $HOME/scripts/polybarstart -#$exe "i3-msg 'workspace 1; append_layout /home/egraaf/.i3/workspace-1.json'" -#exec --no-startup-id i3-msg 'exec "urxvt +sb -name htop -e /usr/bin/htop"' -#exec --no-startup-id i3-msg 'exec "urxvt +sb -name log -e tail -f /var/log/messages"' -#exec --no-startup-id i3-msg 'exec "urxvt"' -#$exe i3-msg 'exec "firefox +sb -name firefox -e firefox"' -# -#i3 tweaks -#for_window [title="Desktop — Plasma"] kill; floating enable; border none + +#i3 specific for window tweaks for_window [class="Kmix"] floating enable; border none for_window [title="Remmina Remote Desktop Client"] floating enable; border none for_window [title="Microsoft Teams Notification"] floating enable; border none -#for_window [class="Mozilla Firefox"] floating enable; border none - -#i3fyra -#for_window [class="^.*"] floating enabled -for_window [class="lxappearance.Lxappearance"] focus; $exe i3fyra -m C -for_window [class="Navigator.firefox"] focus; $exe i3fyra -m A -for_window [class="^.*"] focus; $exe i3fyra -A # Gaps #gaps inner 15 #gaps outer 15 -# appearance -set_from_resource $act budstyle.accent #FF00FF -set_from_resource $ina budstyle.bg1 #FF00FF -set_from_resource $atx budstyle.fg2 #FF00FF -set_from_resource $itx budstyle.fg1 #FF00FF -set_from_resource $urg budstyle.redish #FF00FF -set_from_resource $utx budstyle.fg1 #FF00FF -set_from_resource $fnt budstyle.font1 monospace -set_from_resource $fsz budstyle.fontsz1 32 - # with titlebar: -#for_window [class="^.*"] border normal 5 for_window [class="^.*"] border normal 1 # without titelbar: diff --git a/config/picom/picom b/config/picom/picom new file mode 120000 index 0000000..1bd2316 --- /dev/null +++ b/config/picom/picom @@ -0,0 +1 @@ +/home/demo/git/dotfiles/config/picom \ No newline at end of file diff --git a/config/polybar/polybar b/config/polybar/polybar new file mode 120000 index 0000000..caff238 --- /dev/null +++ b/config/polybar/polybar @@ -0,0 +1 @@ +/home/demo/git/dotfiles/config/polybar \ No newline at end of file diff --git a/make-symlinks.sh b/make-symlinks.sh index 08f5525..f3d4056 100755 --- a/make-symlinks.sh +++ b/make-symlinks.sh @@ -7,18 +7,13 @@ ln -s ~/git/dotfiles/bashrc ~/.bashrc ln -s ~/git/dotfiles/config/autorandr/ ~/.config/autorandr ln -s ~/git/dotfiles/config/copyq/copyq.conf ~/.config/copyq/copyq.conf ln -s ~/git/dotfiles/config/fontconfig/fonts.conf ~/.config/fontconfig/fonts.conf -ln -s ~/git/dotfiles/config/i3 ~/.config/i3 -ln -s ~/git/dotfiles/config/obs-studio ~/.config/obs-studio +ln -s ~/git/dotfiles/config/i3/config ~/.config/i3/config ln -s ~/git/dotfiles/config/picom ~/.config/picom ln -s ~/git/dotfiles/config/polybar ~/.config/polybar ln -s ~/git/dotfiles/config/compton.conf ~/.config/compton.conf -ln -s ~/git/dotfiles/config/kdeglobals ~/.config/kdeglobals -ln -s ~/git/dotfiles/config/kdenliverc ~/.config/kdenliverc ln -s ~/git/dotfiles/xfiles/ ~/.xfiles ln -s ~/git/dotfiles/vimrc ~/.vimrc ln -s ~/git/dotfiles/Xmodmap ~/.Xmodmap -ln -s ~/git/dotfiles/config/touchpadrc ~/.config/touchpadrc -ln -s ~/git/dotfiles/config/touchpadxlibinputrc ~/.config/touchpadxlibinputrc else echo Missing the dotfiles dir in the git folder! fi @@ -26,3 +21,4 @@ echo Plug for Vim plugin management curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim diff --git a/xfiles/themes/monokay b/xfiles/themes/monokay new file mode 100644 index 0000000..213bbee --- /dev/null +++ b/xfiles/themes/monokay @@ -0,0 +1,37 @@ +! special +*.foreground: #f1ebeb +*.background: #272822 +*.cursorColor: #f1ebeb + +! black +*.color0: #48483e +*.color8: #76715e + +! red +*.color1: #dc2566 +*.color9: #fa2772 + +! green +*.color2: #8fc029 +*.color10: #a7e22e + +! yellow +*.color3: #d4c96e +*.color11: #e7db75 + +! blue +*.color4: #55bcce +*.color12: #66d9ee + +! magenta +*.color5: #9358fe +*.color13: #ae82ff + +! cyan +*.color6: #56b7a5 +*.color14: #66efd5 + +! white +*.color7: #acada1 +*.color15: #cfd0c2 + diff --git a/xfiles/xfiles b/xfiles/xfiles new file mode 120000 index 0000000..81c6465 --- /dev/null +++ b/xfiles/xfiles @@ -0,0 +1 @@ +/home/demo/git/dotfiles/xfiles/ \ No newline at end of file