diff --git a/i3/config b/i3/config index 7b64f41..91d5108 100644 --- a/i3/config +++ b/i3/config @@ -1,99 +1,97 @@ -# 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). -# +# [Startup] -# class border backgr. text indicator child_border b9b9b9 +exec --no-startup-id polybar top +exec --no-startup-id setxkbmap -option 'grp:alt_space_toggle' + +# compton: Xubuntu 20.04 ThinkPad E14 +exec --no-startup-id compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --vsync --backend xr_glx_hybrid --vsync-use-glfinish + +# compton: Xubuntu 18.04 Samsung [backup] +# exec --no-startup-id ~/.local/bin/compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --backend glx --vsync opengl-swc --unredir-if-possible + +# [Appearance] + +# class border backgr. text indicator child_border client.focused #444444 #444444 #dfdfdf #b9b9b9 #b9b9b9 client.focused_inactive #222222 #222222 #dfdfdf #ffffff #000000 client.unfocused #222222 #222222 #dfdfdf #ffffff #000000 client.urgent #222222 #222222 #dfdfdf #ffffff #000000 client.placeholder #222222 #222222 #dfdfdf #ffffff #000000 - client.background #ffffff +font pango:NotoSans 11 + gaps inner 30 +hide_edge_borders both -# exec --no-startup-id compton -cfb -D 5 --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 0.5 -# exec --no-startup-id ~/.local/bin/compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --backend glx --vsync opengl-swc --unredir-if-possible -exec --no-startup-id compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --vsync --backend xr_glx_hybrid --vsync-use-glfinish +workspace 1 gaps inner 0 +workspace 2 gaps inner 0 -exec --no-startup-id polybar top - -exec --no-startup-id setxkbmap -option 'grp:alt_space_toggle' - -# 2 for_window [class=".*"] title_format " %title " for_window [class="^.*"] border pixel 3 -# new_window 1pixel -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! +# [Keyboard shortcuts] 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:terminus 16 -font pango:NotoSans 11 +# [Execute] -# 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 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal bindsym $mod+Return exec i3-sensible-terminal +bindsym Print exec xfce4-screenshooter -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) bindsym $mod+d exec rofi -show run bindsym $mod+Tab exec rofi -show window -# 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 exec --no-startup-id i3-dmenu-desktop + +# volume controls + +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound + +# screen brightness controls + +bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 5 & notify-send -t 1 $(light)" +bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 5 & notify-send -t 1 $(light)" + +# i3 + +# 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'" + +# [Window] + +bindsym $mod+Shift+q kill # change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right -# alternatively, you can use the cursor keys: +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + 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+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+colon move right -# alternatively, you can use the cursor keys: +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + 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+b split h # split in vertical orientation bindsym $mod+v split v @@ -102,6 +100,7 @@ bindsym $mod+v split v 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 @@ -112,14 +111,19 @@ bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle +# use mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + # focus the parent container bindsym $mod+a focus parent # focus the child container -#bindsym $mod+d focus child +bindsym $mod+z focus child + +# [Workspaces] + +workspace_auto_back_and_forth yes -# 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" @@ -131,25 +135,18 @@ set $ws8 "8" set $ws9 "9" set $ws10 "10" -workspace 1 gaps inner 0 -workspace 2 gaps inner 0 -hide_edge_borders both +# switch to nearest workspace -bindsym $mod+Ctrl+Up workspace prev -bindsym $mod+Ctrl+Down workspace next bindsym $mod+Ctrl+j workspace prev bindsym $mod+Ctrl+k workspace next -# Pulse Audio controls -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound - -# Sreen brightness controls -bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 5 & notify-send -t 1 $(light)" -bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 5 & notify-send -t 1 $(light)" +bindsym $mod+Ctrl+Up workspace prev +bindsym $mod+Ctrl+Left workspace prev +bindsym $mod+Ctrl+Down workspace next +bindsym $mod+Ctrl+Right workspace next # switch to workspace + bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 @@ -161,9 +158,8 @@ bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 -workspace_auto_back_and_forth yes - # move focused container to workspace + bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 @@ -175,25 +171,18 @@ bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $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'" +# [Mods] # 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 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 + 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 @@ -208,11 +197,3 @@ mode "resize" { } bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -#bar { -# status_command i3status -#} - -bindsym Print exec xfce4-screenshooter diff --git a/installPackages.sh b/installPackages.sh index 96dc467..88faccc 100755 --- a/installPackages.sh +++ b/installPackages.sh @@ -1,20 +1,22 @@ sudo apt install \ - rxvt-unicode-256color \ fonts-font-awesome \ xfonts-terminus \ + i3-gaps-wm \ + compton \ + polybar \ + rofi \ lxappearance \ + gparted \ + gimp \ + vlc \ + rxvt-unicode-256color \ + light \ curl \ htop \ - gimp \ - rofi \ - git \ - i3-gaps-wm \ - polybar \ - compton \ - vlc \ - vim \ ncdu \ - light \ + lynx \ + vim \ + git \ mc sudo update-alternatives --config x-terminal-emulator diff --git a/polybar/config b/polybar/config index f916a7f..ab559bf 100644 --- a/polybar/config +++ b/polybar/config @@ -26,16 +26,13 @@ module-margin-left = 4 module-margin-right = 4 - ;font-0 = Noto Sans:size=11;1 font-0 = NotoSans-Regular:size=11;1 font-1 = FontAwesome:size=10;2 font-2 = Unifont:size=6;1 modules-left = i3 xwindow - ;modules-center = cpu memory - ;modules-right = volume xkeyboard memory cpu wlan eth battery temperature date powermenu modules-right = xkeyboard volume wlan eth battery date - + ;modules-center = cpu memory ;tray-position = right ;tray-padding = 2 @@ -43,11 +40,6 @@ ;tray-background = #0063ff ;tray-transparent = true - ;wm-restack = i3 - - ;scroll-up = i3wm-wsnext - ;scroll-down = i3wm-wsprev - ;i3 [module/i3] type = internal/i3 @@ -85,11 +77,10 @@ label-urgent-background = ${self.label-focused-background} label-urgent-padding = ${self.label-focused-padding} - ;title [module/xwindow] type = internal/xwindow - label = %title:0:100:...% + label = %title:0:140:...% ;lang [module/xkeyboard] @@ -186,7 +177,6 @@ bar-volume-empty-font = 1 bar-volume-empty-foreground = #444 - ;battery [module/battery] type = internal/battery @@ -211,6 +201,4 @@ [module/date] type = internal/date date = %%{F#99}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-} - ;date-alt =  %%{F#99}%A, %d %B %Y %%{F#fff}%H:%M%%{F#666} %%{F#fba922}%S%%{F-} date-alt =  %%{F#99}%A, %d %B %Y %%{F#fff}%H:%M:%S%%{F-} - ;label-underline = ${colors.foreground} diff --git a/rofi/paper-float.rasi b/rofi/paper-float.rasi index d4f47e2..5f7914f 100644 --- a/rofi/paper-float.rasi +++ b/rofi/paper-float.rasi @@ -1,9 +1,9 @@ /** - * A floating box version of the paper theme. + * A floating and a modified box version of the paper theme. * - * User: Qball * Copyright: Dave Davenport */ + * { blue: #0000FF; white: #FFFFFF; @@ -14,6 +14,7 @@ background-color: #00000000; border-color: #444444FF; } + #window { transparency: "screenshot"; background-color: #00000000; @@ -22,22 +23,26 @@ x-offset: 0; y-offset: 0; } + #mainbox { padding: 0px; border: 0; spacing: 1%; } + #message { - border: 2px; - padding: 1em; - background-color: @white; + border: 2px; + padding: 1em; + background-color: @white; text-color: @back; } + #textbox normal { text-color: #002B36FF; padding: 0; border: 0; } + #listview { fixed-height: 1; border: 2px; @@ -47,31 +52,38 @@ columns: 1; background-color: @white; } + #element { padding: 0.5em; - highlight: bold ; + highlight: bold; } + #element normal.normal { text-color: @gray; background-color: #F5F5F500; } + #element normal.urgent { text-color: #D75F00FF; background-color: #F5F5F5FF; } + #element normal.active { text-color: @black; background-color: #F5F5F5FF; } + #element selected.normal { text-color: #F5F5F5FF; text-color: @black; background-color: #D0D0D0FF; } + #element selected.urgent { text-color: #F5F5F5FF; background-color: #D75F00FF; } + #element selected.active { text-color: @black; background-color: #D0D0D0FF; @@ -81,6 +93,7 @@ border: 0; padding: 0; } + #inputbar { spacing: 0; border: 2px; @@ -89,6 +102,7 @@ background-color: @grey; index: 0; } + #inputbar normal { foreground-color: #002B36FF; background-color: #F5F5F500; diff --git a/root/.Xresources b/root/.Xresources index a6d85b7..cadd301 100644 --- a/root/.Xresources +++ b/root/.Xresources @@ -1,5 +1,4 @@ ! RXVT Config. terminus font is required! -! sudo update-alternatives --set x-terminal-emulator "$(which terminator)" URxvt.font: xft:Terminus:size=13 diff --git a/root/.vimrc b/root/.vimrc index d022366..70d8658 100644 --- a/root/.vimrc +++ b/root/.vimrc @@ -1,3 +1,2 @@ set relativenumber highlight EndOfBuffer ctermfg=16 - diff --git a/root/.zshrc b/root/.zshrc index db71cc8..74f4791 100644 --- a/root/.zshrc +++ b/root/.zshrc @@ -1,10 +1,10 @@ # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH - export PATH=$HOME/apps/bin:$PATH +export PATH=$HOME/apps/bin:$PATH # Path to your oh-my-zsh installation. - export ZSH="/home/odd/.oh-my-zsh" +export ZSH="/home/odd/.oh-my-zsh" # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loaded.