This commit is contained in:
He4eT 2020-08-27 01:53:17 +05:00
commit 8d57fa30a6
7 changed files with 113 additions and 130 deletions

173
i3/config
View file

@ -1,99 +1,97 @@
# This file has been auto-generated by i3-config-wizard(1). # [Startup]
# 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).
#
# 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 #444444 #444444 #dfdfdf #b9b9b9 #b9b9b9
client.focused_inactive #222222 #222222 #dfdfdf #ffffff #000000 client.focused_inactive #222222 #222222 #dfdfdf #ffffff #000000
client.unfocused #222222 #222222 #dfdfdf #ffffff #000000 client.unfocused #222222 #222222 #dfdfdf #ffffff #000000
client.urgent #222222 #222222 #dfdfdf #ffffff #000000 client.urgent #222222 #222222 #dfdfdf #ffffff #000000
client.placeholder #222222 #222222 #dfdfdf #ffffff #000000 client.placeholder #222222 #222222 #dfdfdf #ffffff #000000
client.background #ffffff client.background #ffffff
font pango:NotoSans 11
gaps inner 30 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 workspace 1 gaps inner 0
# 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 workspace 2 gaps inner 0
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
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=".*"] title_format " %title "
for_window [class="^.*"] border pixel 3 for_window [class="^.*"] border pixel 3
# new_window 1pixel
# i3 config file (v4) # [Keyboard shortcuts]
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4 set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font # [Execute]
# is used in the bar {} block below.
# font pango:terminus 16
font pango:NotoSans 11
# 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 doesnt 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 $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+d exec rofi -show run
bindsym $mod+Tab exec rofi -show window 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 # volume controls
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop 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 # 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+Left focus left
bindsym $mod+Down focus down bindsym $mod+Down focus down
bindsym $mod+Up focus up bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
# move focused window # 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+Left move left
bindsym $mod+Shift+Down move down bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+h split h bindsym $mod+b split h
# split in vertical orientation # split in vertical orientation
bindsym $mod+v split v bindsym $mod+v split v
@ -102,6 +100,7 @@ bindsym $mod+v split v
bindsym $mod+f fullscreen toggle bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split) # change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split bindsym $mod+e layout toggle split
@ -112,14 +111,19 @@ bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows # change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle bindsym $mod+space focus mode_toggle
# use mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
# focus the child container # 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 $ws1 "1"
set $ws2 "2" set $ws2 "2"
set $ws3 "3" set $ws3 "3"
@ -131,25 +135,18 @@ set $ws8 "8"
set $ws9 "9" set $ws9 "9"
set $ws10 "10" set $ws10 "10"
workspace 1 gaps inner 0 # switch to nearest workspace
workspace 2 gaps inner 0
hide_edge_borders both
bindsym $mod+Ctrl+Up workspace prev
bindsym $mod+Ctrl+Down workspace next
bindsym $mod+Ctrl+j workspace prev bindsym $mod+Ctrl+j workspace prev
bindsym $mod+Ctrl+k workspace next bindsym $mod+Ctrl+k workspace next
# Pulse Audio controls bindsym $mod+Ctrl+Up workspace prev
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume bindsym $mod+Ctrl+Left workspace prev
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume bindsym $mod+Ctrl+Down workspace next
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound bindsym $mod+Ctrl+Right workspace next
# 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)"
# switch to workspace # switch to workspace
bindsym $mod+1 workspace $ws1 bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2 bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3 bindsym $mod+3 workspace $ws3
@ -161,9 +158,8 @@ bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9 bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10 bindsym $mod+0 workspace $ws10
workspace_auto_back_and_forth yes
# move focused container to workspace # move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3 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+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+0 move container to workspace $ws10
# reload the configuration file # [Mods]
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) # resize window (you can also use the mouse for that)
mode "resize" { mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width. # Pressing left will shrink the windows width.
# Pressing right will grow the windows width. # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # Pressing up will shrink the windows height.
# Pressing down will grow the windows height. # Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt bindsym h resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt bindsym j resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt bindsym k resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys # same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt bindsym Left resize shrink width 10 px or 10 ppt
@ -208,11 +197,3 @@ mode "resize" {
} }
bindsym $mod+r 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

View file

@ -1,20 +1,22 @@
sudo apt install \ sudo apt install \
rxvt-unicode-256color \
fonts-font-awesome \ fonts-font-awesome \
xfonts-terminus \ xfonts-terminus \
i3-gaps-wm \
compton \
polybar \
rofi \
lxappearance \ lxappearance \
gparted \
gimp \
vlc \
rxvt-unicode-256color \
light \
curl \ curl \
htop \ htop \
gimp \
rofi \
git \
i3-gaps-wm \
polybar \
compton \
vlc \
vim \
ncdu \ ncdu \
light \ lynx \
vim \
git \
mc mc
sudo update-alternatives --config x-terminal-emulator sudo update-alternatives --config x-terminal-emulator

View file

@ -26,16 +26,13 @@
module-margin-left = 4 module-margin-left = 4
module-margin-right = 4 module-margin-right = 4
;font-0 = Noto Sans:size=11;1
font-0 = NotoSans-Regular:size=11;1 font-0 = NotoSans-Regular:size=11;1
font-1 = FontAwesome:size=10;2 font-1 = FontAwesome:size=10;2
font-2 = Unifont:size=6;1 font-2 = Unifont:size=6;1
modules-left = i3 xwindow 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-right = xkeyboard volume wlan eth battery date
;modules-center = cpu memory
;tray-position = right ;tray-position = right
;tray-padding = 2 ;tray-padding = 2
@ -43,11 +40,6 @@
;tray-background = #0063ff ;tray-background = #0063ff
;tray-transparent = true ;tray-transparent = true
;wm-restack = i3
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
;i3 ;i3
[module/i3] [module/i3]
type = internal/i3 type = internal/i3
@ -85,11 +77,10 @@
label-urgent-background = ${self.label-focused-background} label-urgent-background = ${self.label-focused-background}
label-urgent-padding = ${self.label-focused-padding} label-urgent-padding = ${self.label-focused-padding}
;title ;title
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow
label = %title:0:100:...% label = %title:0:140:...%
;lang ;lang
[module/xkeyboard] [module/xkeyboard]
@ -186,7 +177,6 @@
bar-volume-empty-font = 1 bar-volume-empty-font = 1
bar-volume-empty-foreground = #444 bar-volume-empty-foreground = #444
;battery ;battery
[module/battery] [module/battery]
type = internal/battery type = internal/battery
@ -211,6 +201,4 @@
[module/date] [module/date]
type = internal/date type = internal/date
date = %%{F#99}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-} 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-} date-alt =  %%{F#99}%A, %d %B %Y %%{F#fff}%H:%M:%S%%{F-}
;label-underline = ${colors.foreground}

View file

@ -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 * Copyright: Dave Davenport
*/ */
* { * {
blue: #0000FF; blue: #0000FF;
white: #FFFFFF; white: #FFFFFF;
@ -14,6 +14,7 @@
background-color: #00000000; background-color: #00000000;
border-color: #444444FF; border-color: #444444FF;
} }
#window { #window {
transparency: "screenshot"; transparency: "screenshot";
background-color: #00000000; background-color: #00000000;
@ -22,22 +23,26 @@
x-offset: 0; x-offset: 0;
y-offset: 0; y-offset: 0;
} }
#mainbox { #mainbox {
padding: 0px; padding: 0px;
border: 0; border: 0;
spacing: 1%; spacing: 1%;
} }
#message { #message {
border: 2px; border: 2px;
padding: 1em; padding: 1em;
background-color: @white; background-color: @white;
text-color: @back; text-color: @back;
} }
#textbox normal { #textbox normal {
text-color: #002B36FF; text-color: #002B36FF;
padding: 0; padding: 0;
border: 0; border: 0;
} }
#listview { #listview {
fixed-height: 1; fixed-height: 1;
border: 2px; border: 2px;
@ -47,31 +52,38 @@
columns: 1; columns: 1;
background-color: @white; background-color: @white;
} }
#element { #element {
padding: 0.5em; padding: 0.5em;
highlight: bold ; highlight: bold;
} }
#element normal.normal { #element normal.normal {
text-color: @gray; text-color: @gray;
background-color: #F5F5F500; background-color: #F5F5F500;
} }
#element normal.urgent { #element normal.urgent {
text-color: #D75F00FF; text-color: #D75F00FF;
background-color: #F5F5F5FF; background-color: #F5F5F5FF;
} }
#element normal.active { #element normal.active {
text-color: @black; text-color: @black;
background-color: #F5F5F5FF; background-color: #F5F5F5FF;
} }
#element selected.normal { #element selected.normal {
text-color: #F5F5F5FF; text-color: #F5F5F5FF;
text-color: @black; text-color: @black;
background-color: #D0D0D0FF; background-color: #D0D0D0FF;
} }
#element selected.urgent { #element selected.urgent {
text-color: #F5F5F5FF; text-color: #F5F5F5FF;
background-color: #D75F00FF; background-color: #D75F00FF;
} }
#element selected.active { #element selected.active {
text-color: @black; text-color: @black;
background-color: #D0D0D0FF; background-color: #D0D0D0FF;
@ -81,6 +93,7 @@
border: 0; border: 0;
padding: 0; padding: 0;
} }
#inputbar { #inputbar {
spacing: 0; spacing: 0;
border: 2px; border: 2px;
@ -89,6 +102,7 @@
background-color: @grey; background-color: @grey;
index: 0; index: 0;
} }
#inputbar normal { #inputbar normal {
foreground-color: #002B36FF; foreground-color: #002B36FF;
background-color: #F5F5F500; background-color: #F5F5F500;

View file

@ -1,5 +1,4 @@
! RXVT Config. terminus font is required! ! RXVT Config. terminus font is required!
! sudo update-alternatives --set x-terminal-emulator "$(which terminator)"
URxvt.font: xft:Terminus:size=13 URxvt.font: xft:Terminus:size=13

View file

@ -1,3 +1,2 @@
set relativenumber set relativenumber
highlight EndOfBuffer ctermfg=16 highlight EndOfBuffer ctermfg=16

View file

@ -1,10 +1,10 @@
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$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. # 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" # 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. # it'll load a random theme each time that oh-my-zsh is loaded.