Skip to content

Commit

Permalink
Update after fresh i3 install on demo environment
Browse files Browse the repository at this point in the history
  • Loading branch information
endegraaf committed May 23, 2021
1 parent 83adcfa commit 9e34945
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 82 deletions.
2 changes: 1 addition & 1 deletion Xresources
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions config/autorandr/autorandr
100 changes: 25 additions & 75 deletions config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
Expand All @@ -42,41 +41,25 @@ 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
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
Expand All @@ -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
Expand All @@ -109,18 +88,14 @@ 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

# 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

Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions config/picom/picom
1 change: 1 addition & 0 deletions config/polybar/polybar
8 changes: 2 additions & 6 deletions make-symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ 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
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
37 changes: 37 additions & 0 deletions xfiles/themes/monokay
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions xfiles/xfiles

0 comments on commit 9e34945

Please sign in to comment.