Changed folder structure for little tools
parent
14c88eb5cc
commit
7195610732
|
@ -48,7 +48,8 @@ set $ws4 4:
|
||||||
set $ws5 5:
|
set $ws5 5:
|
||||||
set $ws6 6:
|
set $ws6 6:
|
||||||
set $ws7 7:
|
set $ws7 7:
|
||||||
set $ws8 8:
|
set $ws8 8:
|
||||||
|
set $ws9 9:
|
||||||
|
|
||||||
# switch to workspace
|
# switch to workspace
|
||||||
bindsym $mod+1 workspace $ws1
|
bindsym $mod+1 workspace $ws1
|
||||||
|
@ -59,6 +60,7 @@ bindsym $mod+5 workspace $ws5
|
||||||
bindsym $mod+6 workspace $ws6
|
bindsym $mod+6 workspace $ws6
|
||||||
bindsym $mod+7 workspace $ws7
|
bindsym $mod+7 workspace $ws7
|
||||||
bindsym $mod+8 workspace $ws8
|
bindsym $mod+8 workspace $ws8
|
||||||
|
bindsym $mod+9 workspace $ws9
|
||||||
|
|
||||||
# Move focused container to workspace
|
# Move focused container to workspace
|
||||||
bindsym $mod+Ctrl+1 move container to workspace $ws1
|
bindsym $mod+Ctrl+1 move container to workspace $ws1
|
||||||
|
@ -69,6 +71,7 @@ bindsym $mod+Ctrl+5 move container to workspace $ws5
|
||||||
bindsym $mod+Ctrl+6 move container to workspace $ws6
|
bindsym $mod+Ctrl+6 move container to workspace $ws6
|
||||||
bindsym $mod+Ctrl+7 move container to workspace $ws7
|
bindsym $mod+Ctrl+7 move container to workspace $ws7
|
||||||
bindsym $mod+Ctrl+8 move container to workspace $ws8
|
bindsym $mod+Ctrl+8 move container to workspace $ws8
|
||||||
|
bindsym $mod+Ctrl+9 move container to workspace $ws9
|
||||||
|
|
||||||
# Move to workspace with focused container
|
# Move to workspace with focused container
|
||||||
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
|
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
|
||||||
|
@ -79,6 +82,7 @@ bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
|
||||||
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
|
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
|
||||||
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
|
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
|
||||||
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
|
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
|
||||||
|
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
|
||||||
|
|
||||||
# Open applications on specific workspaces
|
# Open applications on specific workspaces
|
||||||
assign [class="Firefox"] $ws2
|
assign [class="Firefox"] $ws2
|
||||||
|
@ -122,7 +126,7 @@ exec --no-startup-id xautolock -time 10 -locker "python ~/.scripts/i3lock.py"
|
||||||
exec --no-startup-id Nextcloud
|
exec --no-startup-id Nextcloud
|
||||||
exec --no-startup-id emacs --daemon
|
exec --no-startup-id emacs --daemon
|
||||||
exec --no-startup-id udiskie
|
exec --no-startup-id udiskie
|
||||||
exec --no-startup-id polybar beep
|
exec --no-startup-id polybar beep -r
|
||||||
exec --no-startup-id setxkbmap gb,de
|
exec --no-startup-id setxkbmap gb,de
|
||||||
###############################################################################
|
###############################################################################
|
||||||
################################# Keybindings #################################
|
################################# Keybindings #################################
|
||||||
|
@ -135,7 +139,7 @@ bindsym $mod+Return exec termite
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
# start program launcher
|
# start program launcher
|
||||||
bindsym $mod+d exec --no-startup-id rofi -show run
|
bindsym $mod+d exec --no-startup-id rofi -X -show run
|
||||||
|
|
||||||
# Screen brightness controls
|
# Screen brightness controls
|
||||||
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
|
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
|
||||||
|
@ -195,29 +199,9 @@ bindsym $mod+minus scratchpad show
|
||||||
bindsym $mod+Ctrl+semicolon workspace next
|
bindsym $mod+Ctrl+semicolon workspace next
|
||||||
bindsym $mod+Ctrl+j workspace prev
|
bindsym $mod+Ctrl+j workspace prev
|
||||||
|
|
||||||
|
|
||||||
# reload the configuration file
|
|
||||||
bindsym $mod+Shift+c reload
|
|
||||||
|
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
bindsym $mod+Shift+r restart
|
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'"
|
|
||||||
|
|
||||||
# Set shut down, restart and locking features
|
|
||||||
bindsym $mod+0 mode "$mode_system"
|
|
||||||
set $mode_system (l)ock, log_o(u)t, (r)eboot, (Shift+s)hutdown
|
|
||||||
mode "$mode_system" {
|
|
||||||
bindsym l exec --no-startup-id "python ~/.scripts/i3lock.py", mode "default"
|
|
||||||
bindsym u exec --no-startup-id dm-tool lock, mode "default"
|
|
||||||
bindsym r exec --no-startup-id reboot, mode "default"
|
|
||||||
bindsym Shift+s exec --no-startup-id poweroff, mode "default"
|
|
||||||
|
|
||||||
# exit system mode: "Enter" or "Escape"
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Resize window (you can also use the mouse for that)
|
# Resize window (you can also use the mouse for that)
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
@ -235,7 +219,7 @@ mode "resize" {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Lock screen
|
# Lock screen
|
||||||
bindsym $mod+9 exec --no-startup-id "python ~/.scripts/i3lock.py"
|
bindsym $mod+0 exec --no-startup-id "python ~/.scripts/i3lock.py"
|
||||||
|
|
||||||
# Color palette used for the terminal ( ~/.extend.Xresources file )
|
# Color palette used for the terminal ( ~/.extend.Xresources file )
|
||||||
# Colors are gathered based on the documentation:
|
# Colors are gathered based on the documentation:
|
||||||
|
|
|
@ -27,7 +27,7 @@ foreground = ${colors.foreground}
|
||||||
line-size = 04
|
line-size = 04
|
||||||
line-color = ${colors.blue}
|
line-color = ${colors.blue}
|
||||||
|
|
||||||
border-size = 2
|
border-size = 4
|
||||||
border-color = #00000000
|
border-color = #00000000
|
||||||
|
|
||||||
padding-left = 0
|
padding-left = 0
|
||||||
|
@ -43,7 +43,7 @@ font-3 = FontAwesome:style=Regular:pixelsize=10
|
||||||
|
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = date
|
modules-center = date
|
||||||
modules-right = volume xbacklight xkeyboard wlan battery powermenu
|
modules-right = xkeyboard volume xbacklight wlan battery powermenu
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
|
@ -96,6 +96,7 @@ ws-icon-4 = 5;
|
||||||
ws-icon-5 = 6;
|
ws-icon-5 = 6;
|
||||||
ws-icon-6 = 7;
|
ws-icon-6 = 7;
|
||||||
ws-icon-7 = 8;
|
ws-icon-7 = 8;
|
||||||
|
ws-icon-8 = 9;
|
||||||
ws-icon-default = \
|
ws-icon-default = \
|
||||||
|
|
||||||
format = <label-state>
|
format = <label-state>
|
||||||
|
@ -191,6 +192,7 @@ format-volume-underline = ${colors.green}
|
||||||
format-muted-prefix = " "
|
format-muted-prefix = " "
|
||||||
format-muted-foreground = ${colors.foreground-alt}
|
format-muted-foreground = ${colors.foreground-alt}
|
||||||
label-muted = sound muted
|
label-muted = sound muted
|
||||||
|
label-muted-underline = ${colors.red}
|
||||||
|
|
||||||
bar-volume-width = 10
|
bar-volume-width = 10
|
||||||
bar-volume-foreground-0 = ${colors.green}
|
bar-volume-foreground-0 = ${colors.green}
|
||||||
|
@ -254,20 +256,12 @@ label-close-foreground = ${colors.magenta}
|
||||||
label-separator = |
|
label-separator = |
|
||||||
label-separator-foreground = ${colors.foreground-alt}
|
label-separator-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
menu-0-0 = reboot
|
menu-0-0 = power off
|
||||||
menu-0-0-exec = menu-open-1
|
menu-0-0-exec = poweroff
|
||||||
menu-0-1 = power off
|
menu-0-1 = reboot
|
||||||
menu-0-1-exec = menu-open-2
|
menu-0-1-exec = reboot
|
||||||
|
menu-0-2 = logout
|
||||||
menu-1-0 = cancel
|
menu-0-2-exec = dm-tool lock
|
||||||
menu-1-0-exec = menu-open-0
|
|
||||||
menu-1-1 = reboot
|
|
||||||
menu-1-1-exec = sudo reboot
|
|
||||||
|
|
||||||
menu-2-0 = power off
|
|
||||||
menu-2-0-exec = sudo poweroff
|
|
||||||
menu-2-1 = cancel
|
|
||||||
menu-2-1-exec = menu-open-0
|
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
;screenchange-reload = true
|
;screenchange-reload = true
|
|
@ -0,0 +1,6 @@
|
||||||
|
rofi.theme: sidebar
|
||||||
|
#! State 'bg' 'fg' 'bgalt' 'hlbg' 'hlfg'
|
||||||
|
#rofi.color-normal: #263238,#cfd8dc,#263238,#37474f,#03a9f4
|
||||||
|
#rofi.color-urgent: #263238,#cfd8dc,#263238,#37474f,#03a9f4
|
||||||
|
#rofi.color-active: #e91e63,#cfd8dc,#e91e63,#37474f,#03a9f4
|
||||||
|
rofi.show-icons: true
|
|
@ -0,0 +1,123 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* ROFI Color theme
|
||||||
|
* User: deadguy
|
||||||
|
* Copyright: deadguy
|
||||||
|
* Color-Theme: Materia
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
* {
|
||||||
|
background-color: #263238;
|
||||||
|
text-color: #cfd8dc;
|
||||||
|
selbg: #03a9f4;
|
||||||
|
actbg: #37474f;
|
||||||
|
urgbg: #e91e63;
|
||||||
|
|
||||||
|
selected-normal-foreground: @selbg;
|
||||||
|
normal-foreground: @text-color;
|
||||||
|
selected-normal-background: @actbg;
|
||||||
|
normal-background: @background-color;
|
||||||
|
|
||||||
|
selected-urgent-foreground: @background-color;
|
||||||
|
urgent-foreground: @text-color;
|
||||||
|
selected-urgent-background: @urgbg;
|
||||||
|
urgent-background: @background-color;
|
||||||
|
|
||||||
|
selected-active-foreground: @selbg;
|
||||||
|
active-foreground: @text-color;
|
||||||
|
selected-active-background: @actbg;
|
||||||
|
active-background: @selbg;
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
location: north;
|
||||||
|
anchor: north;
|
||||||
|
height: 20%;
|
||||||
|
width: 80%;
|
||||||
|
orientation: vertical;
|
||||||
|
children: [mainbox];
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainbox {
|
||||||
|
spacing: 0.8em;
|
||||||
|
children: [ entry,listview ];
|
||||||
|
}
|
||||||
|
|
||||||
|
#button { padding: 5px 2px; }
|
||||||
|
|
||||||
|
#button selected {
|
||||||
|
background-color: @active-background;
|
||||||
|
text-color: @background-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#inputbar {
|
||||||
|
padding: 5px;
|
||||||
|
spacing: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#listview {
|
||||||
|
spacing: 0.5em;
|
||||||
|
dynamic: false;
|
||||||
|
cycle: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element { padding: 10px; }
|
||||||
|
|
||||||
|
#entry {
|
||||||
|
expand: false;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
vertical-align: 1;
|
||||||
|
padding: 5px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.normal.normal {
|
||||||
|
background-color: @normal-background;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.normal.urgent {
|
||||||
|
background-color: @urgent-background;
|
||||||
|
text-color: @urgent-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.normal.active {
|
||||||
|
background-color: @active-background;
|
||||||
|
text-color: @active-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.selected.normal {
|
||||||
|
background-color: @selected-normal-background;
|
||||||
|
text-color: @selected-normal-foreground;
|
||||||
|
border: 0 5px solid 0 0;
|
||||||
|
border-color: @active-background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.selected.urgent {
|
||||||
|
background-color: @selected-urgent-background;
|
||||||
|
text-color: @selected-urgent-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.selected.active {
|
||||||
|
background-color: @selected-active-background;
|
||||||
|
text-color: @selected-active-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.alternate.normal {
|
||||||
|
background-color: @normal-background;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.alternate.urgent {
|
||||||
|
background-color: @urgent-background;
|
||||||
|
text-color: @urgent-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#element.alternate.active {
|
||||||
|
background-color: @active-background;
|
||||||
|
text-color: @active-foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
44
zsh/.zshrc
44
zsh/.zshrc
|
@ -1,26 +1,5 @@
|
||||||
# Path to your oh-my-zsh installation.
|
|
||||||
export ZSH=~/.oh-my-zsh
|
export ZSH=~/.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.
|
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
|
||||||
ZSH_THEME="powerlevel9k/powerlevel9k"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable auto-setting terminal title.
|
|
||||||
DISABLE_AUTO_TITLE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to change the command execution time
|
|
||||||
# stamp shown in the history command output.
|
|
||||||
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
||||||
HIST_STAMPS="yyyy.mm.dd"
|
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
||||||
|
|
||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
|
||||||
plugins=(
|
plugins=(
|
||||||
git
|
git
|
||||||
history
|
history
|
||||||
|
@ -29,10 +8,10 @@ plugins=(
|
||||||
web-search
|
web-search
|
||||||
)
|
)
|
||||||
|
|
||||||
# User configuration
|
ZSH_THEME="powerlevel9k/powerlevel9k"
|
||||||
|
HIST_STAMPS="yyyy.mm.dd"
|
||||||
|
|
||||||
#POWERLEVEL
|
#POWERLEVEL
|
||||||
|
|
||||||
POWERLEVEL9K_MODE='awesome-fontconfig'
|
POWERLEVEL9K_MODE='awesome-fontconfig'
|
||||||
|
|
||||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs)
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs)
|
||||||
|
@ -43,29 +22,26 @@ POWERLEVEL9K_STATUS_OK_FOREGROUND="orange"
|
||||||
POWERLEVEL9K_STATUS_ERROR_BACKGROUND="blue"
|
POWERLEVEL9K_STATUS_ERROR_BACKGROUND="blue"
|
||||||
POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
|
POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
|
||||||
|
|
||||||
#POWERLEVEL9K_BATTERY_BACKGROUND="color6"
|
|
||||||
#POWERLEVEL9K_BATTERY_DISCONNECTED="color6"
|
|
||||||
#POWERLEVEL9K_BATTERY_STAGES="▁▂▃▄▅▆▇█"
|
|
||||||
|
|
||||||
POWERLEVEL9K_TIME_BACKGROUND="black"
|
POWERLEVEL9K_TIME_BACKGROUND="black"
|
||||||
POWERLEVEL9K_TIME_FOREGROUND="color7"
|
POWERLEVEL9K_TIME_FOREGROUND="color7"
|
||||||
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S} "
|
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S} "
|
||||||
|
|
||||||
# PATHS
|
# Alias
|
||||||
export TERM="xterm-256color" # in case you are using urxvt, to bypass an error during sshing
|
|
||||||
PATH=$PATH:~/.local/bin
|
|
||||||
|
|
||||||
# User alias
|
|
||||||
alias df="df -h"
|
alias df="df -h"
|
||||||
alias mkvirtenv="python -m virtualenv --system-site-packages"
|
alias mkvirtenv="python -m virtualenv --system-site-packages"
|
||||||
alias e="emacsclient -t"
|
alias e="emacsclient -t"
|
||||||
alias nyan="nyancat"
|
alias nyan="nyancat"
|
||||||
alias rm="rm -i"
|
alias rm="rm -i"
|
||||||
alias -s tex=emacs
|
alias -s tex=e
|
||||||
alias -s cpp=emacs
|
alias -s cpp=e
|
||||||
alias org="e ~/Nextcloud/orgs/man.org"
|
alias org="e ~/Nextcloud/orgs/man.org"
|
||||||
alias neofetch="neofetch --block_range 0 16"
|
alias neofetch="neofetch --block_range 0 16"
|
||||||
alias diff="diff -s"
|
alias diff="diff -s"
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
export TERM="xterm-256color" # in case you are using urxvt, to bypass an error during sshing
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
|
export LC_ALL=en_GB.UTF-8
|
||||||
|
PATH=$PATH:~/.local/bin
|
||||||
|
|
Loading…
Reference in New Issue