Switch to Gnome
This commit is contained in:
153
old/i3/config
Normal file
153
old/i3/config
Normal file
@@ -0,0 +1,153 @@
|
||||
# _ _____
|
||||
# (_)___ /
|
||||
# | | |_ \
|
||||
# | |___) |
|
||||
# |_|____/
|
||||
#
|
||||
# ~ M. Thomas
|
||||
|
||||
set $mod Mod4
|
||||
font pango: Product Sans 11
|
||||
|
||||
# locking
|
||||
bindsym $mod+Ctrl+BackSpace exec --no-startup-id "lock.sh"
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
workspace_layout stacking
|
||||
|
||||
### keybinds for starting
|
||||
bindsym $mod+Return exec --no-startup-id "alacritty"
|
||||
bindsym $mod+d exec --no-startup-id "dmenu_run"
|
||||
bindsym $mod+Shift+s exec --no-startup-id "flameshot gui"
|
||||
|
||||
### keybinds for moving windows
|
||||
bindsym $mod+Shift+BackSpace kill
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# sticky
|
||||
bindsym $mod+s sticky toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+Tab layout toggle stacked split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
set $ws1 "1:一"
|
||||
set $ws2 "2:二"
|
||||
set $ws3 "3:三"
|
||||
set $ws4 "4:四"
|
||||
set $ws5 "5:五"
|
||||
set $ws6 "6:六"
|
||||
set $ws7 "7:七"
|
||||
set $ws8 "8:八"
|
||||
set $ws9 "9:九"
|
||||
set $ws10 "10:十"
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $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
|
||||
|
||||
# audio and display control
|
||||
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -2%"
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +2%"
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5 # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5 # decrease screen brightness
|
||||
|
||||
# styling
|
||||
default_border normal
|
||||
title_align center
|
||||
|
||||
gaps inner 5
|
||||
|
||||
set $bg "#fafafa"
|
||||
set $bg2 "#f0f0f0"
|
||||
set $fg "#444444"
|
||||
set $green "#a6cc70"
|
||||
set $red "#ff3333"
|
||||
set $light_red "#f27983"
|
||||
set $yellow "#e7c547"
|
||||
|
||||
bar {
|
||||
status_command i3status
|
||||
position top
|
||||
separator_symbol " "
|
||||
strip_workspace_numbers yes
|
||||
tray_output primary
|
||||
|
||||
colors {
|
||||
background $bg
|
||||
statusline $fg
|
||||
|
||||
# equivalent to focused
|
||||
focused_workspace $bg $green $fg
|
||||
# equivalent to focused_inactive
|
||||
active_workspace $bg $yellow $fg
|
||||
# equivalent to unfocused
|
||||
inactive_workspace $bg $bg $fg
|
||||
# equivalent to urgent
|
||||
urgent_workspace $red $light_red $fg
|
||||
# equivalent to urgent
|
||||
binding_mode $red $light_red $fg
|
||||
}
|
||||
}
|
||||
|
||||
# class border backgr. text indicator child_border
|
||||
client.focused $green $green $fg $green $green
|
||||
client.focused_inactive $yellow $yellow $fg $yellow $yellow
|
||||
client.unfocused $bg2 $bg2 $fg $bg2 $bg2
|
||||
client.urgent $red $light_red $fg $red $light_red
|
||||
|
||||
# startup
|
||||
exec --no-startup-id $HOME/scripts/start_progs.sh
|
||||
|
||||
# set screens
|
||||
exec --no-startup-id $HOME/.screenlayout/layout.sh
|
||||
|
||||
# set wallpaper
|
||||
exec --no-startup-id $HOME/scripts/wallpaper.sh
|
||||
|
||||
# set keyboard
|
||||
exec --no-startup-id "setxkbmap -layout eu"
|
||||
57
old/i3status/config
Normal file
57
old/i3status/config
Normal file
@@ -0,0 +1,57 @@
|
||||
general {
|
||||
output_format = "i3bar"
|
||||
colors = false
|
||||
markup = pango
|
||||
interval = 5
|
||||
}
|
||||
|
||||
order += "load"
|
||||
order += "memory"
|
||||
order += "ethernet enp24s0"
|
||||
order += "wireless _first_"
|
||||
order += "battery all"
|
||||
order += "volume master"
|
||||
order += "tztime local"
|
||||
|
||||
load {
|
||||
format = " %5min"
|
||||
}
|
||||
|
||||
memory {
|
||||
format = " %used"
|
||||
}
|
||||
|
||||
wireless _first_ {
|
||||
format_up = " %essid"
|
||||
format_down = " wlo0 down"
|
||||
}
|
||||
|
||||
ethernet enp24s0 {
|
||||
format_up = " %ip"
|
||||
format_down = " enp24s0 down"
|
||||
}
|
||||
|
||||
volume master {
|
||||
format = " %volume"
|
||||
format_muted = " Muted"
|
||||
device = "default"
|
||||
mixer = "Master"
|
||||
mixer_idx = 0
|
||||
}
|
||||
|
||||
battery all {
|
||||
last_full_capacity = true
|
||||
format = "%status %percentage"
|
||||
format_down = " no battery"
|
||||
status_chr = " "
|
||||
status_bat = " "
|
||||
status_unk = "? Unknown"
|
||||
status_full = " "
|
||||
path = "/sys/class/power_supply/BAT%d/uevent"
|
||||
low_threshold = 10
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = " %time |"
|
||||
format_time = "%a %-d %b %H:%M"
|
||||
}
|
||||
127
old/scripts/key_bindings.zsh
Normal file
127
old/scripts/key_bindings.zsh
Normal file
@@ -0,0 +1,127 @@
|
||||
# ____ ____
|
||||
# / __/___ / __/
|
||||
# / /_/_ / / /_
|
||||
# / __/ / /_/ __/
|
||||
# /_/ /___/_/ key-bindings.zsh
|
||||
#
|
||||
# - $FZF_TMUX_OPTS
|
||||
# - $FZF_CTRL_T_COMMAND
|
||||
# - $FZF_CTRL_T_OPTS
|
||||
# - $FZF_CTRL_R_OPTS
|
||||
# - $FZF_ALT_C_COMMAND
|
||||
# - $FZF_ALT_C_OPTS
|
||||
|
||||
# Key bindings
|
||||
# ------------
|
||||
|
||||
# The code at the top and the bottom of this file is the same as in completion.zsh.
|
||||
# Refer to that file for explanation.
|
||||
if 'zmodload' 'zsh/parameter' 2>'/dev/null' && (( ${+options} )); then
|
||||
__fzf_key_bindings_options="options=(${(j: :)${(kv)options[@]}})"
|
||||
else
|
||||
() {
|
||||
__fzf_key_bindings_options="setopt"
|
||||
'local' '__fzf_opt'
|
||||
for __fzf_opt in "${(@)${(@f)$(set -o)}%% *}"; do
|
||||
if [[ -o "$__fzf_opt" ]]; then
|
||||
__fzf_key_bindings_options+=" -o $__fzf_opt"
|
||||
else
|
||||
__fzf_key_bindings_options+=" +o $__fzf_opt"
|
||||
fi
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
||||
'emulate' 'zsh' '-o' 'no_aliases'
|
||||
|
||||
{
|
||||
|
||||
[[ -o interactive ]] || return 0
|
||||
|
||||
# CTRL-T - Paste the selected file path(s) into the command line
|
||||
__fsel() {
|
||||
local cmd="${FZF_CTRL_T_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
|
||||
-o -type f -print \
|
||||
-o -type d -print \
|
||||
-o -type l -print 2> /dev/null | cut -b3-"}"
|
||||
setopt localoptions pipefail no_aliases 2> /dev/null
|
||||
eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" $(__fzfcmd) -m "$@" | while read item; do
|
||||
echo -n "${(q)item} "
|
||||
done
|
||||
local ret=$?
|
||||
echo
|
||||
return $ret
|
||||
}
|
||||
|
||||
__fzfcmd() {
|
||||
[ -n "$TMUX_PANE" ] && { [ "${FZF_TMUX:-0}" != 0 ] || [ -n "$FZF_TMUX_OPTS" ]; } &&
|
||||
echo "fzf-tmux ${FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}} -- " || echo "fzf"
|
||||
}
|
||||
|
||||
fzf-file-widget() {
|
||||
LBUFFER="${LBUFFER}$(__fsel)"
|
||||
local ret=$?
|
||||
zle reset-prompt
|
||||
return $ret
|
||||
}
|
||||
zle -N fzf-file-widget
|
||||
bindkey '^T' fzf-file-widget
|
||||
|
||||
# Ensure precmds are run after cd
|
||||
fzf-redraw-prompt() {
|
||||
local precmd
|
||||
for precmd in $precmd_functions; do
|
||||
$precmd
|
||||
done
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N fzf-redraw-prompt
|
||||
|
||||
# ALT-C - cd into the selected directory
|
||||
fzf-cd-widget() {
|
||||
local cmd="${FZF_ALT_C_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
|
||||
-o -type d -print 2> /dev/null | cut -b3-"}"
|
||||
setopt localoptions pipefail no_aliases 2> /dev/null
|
||||
local dir="$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS" $(__fzfcmd) +m)"
|
||||
if [[ -z "$dir" ]]; then
|
||||
zle redisplay
|
||||
return 0
|
||||
fi
|
||||
if [ -z "$BUFFER" ]; then
|
||||
BUFFER="cd ${(q)dir}"
|
||||
zle accept-line
|
||||
else
|
||||
print -sr "cd ${(q)dir}"
|
||||
cd "$dir"
|
||||
fi
|
||||
local ret=$?
|
||||
unset dir # ensure this doesn't end up appearing in prompt expansion
|
||||
zle fzf-redraw-prompt
|
||||
return $ret
|
||||
}
|
||||
zle -N fzf-cd-widget
|
||||
bindkey '\ec' fzf-cd-widget
|
||||
|
||||
# CTRL-R - Paste the selected command from history into the command line
|
||||
fzf-history-widget() {
|
||||
local selected num
|
||||
setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases 2> /dev/null
|
||||
selected=( $(fc -rl 1 | perl -ne 'print if !$seen{(/^\s*[0-9]+\**\s+(.*)/, $1)}++' |
|
||||
FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) )
|
||||
local ret=$?
|
||||
if [ -n "$selected" ]; then
|
||||
num=$selected[1]
|
||||
if [ -n "$num" ]; then
|
||||
zle vi-fetch-history -n $num
|
||||
fi
|
||||
fi
|
||||
zle reset-prompt
|
||||
return $ret
|
||||
}
|
||||
zle -N fzf-history-widget
|
||||
bindkey '^R' fzf-history-widget
|
||||
|
||||
} always {
|
||||
eval $__fzf_key_bindings_options
|
||||
'unset' '__fzf_key_bindings_options'
|
||||
}
|
||||
3
old/scripts/lock.sh
Executable file
3
old/scripts/lock.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
xlock -mode maze
|
||||
7
old/scripts/start_progs.sh
Executable file
7
old/scripts/start_progs.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
fcitx5 -d &
|
||||
seafile-applet &
|
||||
nm-applet &
|
||||
dunst &
|
||||
pasystray &
|
||||
7
old/scripts/wallpaper.sh
Executable file
7
old/scripts/wallpaper.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ `hostname` == "nazarick" ]; then
|
||||
feh --bg-fill $HOME/data/Seafile/images/wallpaper/wallpaper-219.png
|
||||
else
|
||||
feh --bg-fill $HOME/data/Seafile/images/wallpaper/wallpaper-169.png
|
||||
fi
|
||||
Reference in New Issue
Block a user