creat config and bin directories
This commit is contained in:
parent
21402b0e70
commit
33e047b6e7
33 changed files with 2009 additions and 0 deletions
12
.gitmodules
vendored
Normal file
12
.gitmodules
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
[submodule "config/vis/plugins/vis-title"]
|
||||
path = config/vis/plugins/vis-title
|
||||
url = https://github.com/erf/vis-title
|
||||
[submodule "config/vis/plugins/vis-shebang"]
|
||||
path = config/vis/plugins/vis-shebang
|
||||
url = https://github.com/e-zk/vis-shebang
|
||||
[submodule "config/vis/plugins/vis-dvorak"]
|
||||
path = config/vis/plugins/vis-dvorak
|
||||
url = https://git.disroot.org/oink/vis-dvorak
|
||||
[submodule "config/vis/plugins/vis-smart-numbers"]
|
||||
path = config/vis/plugins/vis-smart-numbers
|
||||
url = https://git.disroot.org/oink/vis-smart-numbers
|
27
bin/lynx
Executable file
27
bin/lynx
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
# Invoke lynx built with color-style, overriding the color options to use the
|
||||
# non-color-style scheme -TD
|
||||
|
||||
my_cfg=${TMPDIR:-/tmp}/lynxcfg$$
|
||||
my_lss=${TMPDIR:-/tmp}/lynxlss$$
|
||||
trap "rm -f $my_lss $my_cfg" 0 1 2 3 15
|
||||
|
||||
echo >$my_lss
|
||||
|
||||
rm -f "$my_cfg"
|
||||
echo "DEFAULT_COLORS:on" >>$my_cfg
|
||||
if test -n "$LYNX_CFG" ; then
|
||||
echo "include:$LYNX_CFG" >>$my_cfg
|
||||
fi
|
||||
cat >>$my_cfg <<EOF
|
||||
COLOR_STYLE:
|
||||
NESTED_TABLES:off
|
||||
COLOR:0:blue:default
|
||||
EOF
|
||||
|
||||
LYNX_CFG=$my_cfg
|
||||
export LYNX_CFG
|
||||
LYNX_LSS=$my_lss
|
||||
export LYNX_LSS
|
||||
|
||||
${LYNX_PROG-lynx} "$@"
|
12
config/ash/.ashrc
Normal file
12
config/ash/.ashrc
Normal file
|
@ -0,0 +1,12 @@
|
|||
###########
|
||||
# Aliases #
|
||||
###########
|
||||
|
||||
alias lynx="~/.local/bin/lynx"
|
||||
alias e="ls"
|
||||
|
||||
#############
|
||||
# Autostart #
|
||||
#############
|
||||
|
||||
fastfetch
|
23
config/ash/.profile
Normal file
23
config/ash/.profile
Normal file
|
@ -0,0 +1,23 @@
|
|||
#######
|
||||
# ASH #
|
||||
#######
|
||||
|
||||
ENV="$HOME/.ashrc"
|
||||
export ENV
|
||||
. $ENV
|
||||
. .ashrc
|
||||
|
||||
###################
|
||||
# XDG_RUNTIME_DIR #
|
||||
###################
|
||||
|
||||
# Set $XDG_RUNTIME_DIR
|
||||
if test -z "${XDG_RUNTIME_DIR}"; then
|
||||
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
|
||||
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
||||
mkdir "${XDG_RUNTIME_DIR}"
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e /home/vehementham/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vehementham/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
7
config/doas/doas.conf
Normal file
7
config/doas/doas.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
# See doas.conf(5) and doas.d(5) for configuration details.
|
||||
|
||||
# Uncomment to allow group "wheel" to become root.
|
||||
permit persist :wheel
|
||||
permit nopass :wheel cmd /usr/bin/brightnessctl
|
||||
permit nopass :wheel cmd /sbin/reboot
|
||||
permit nopass :wheel cmd /sbin/poweroff
|
82
config/eww/eww.scss
Normal file
82
config/eww/eww.scss
Normal file
|
@ -0,0 +1,82 @@
|
|||
* {
|
||||
all: unset; /* Unsets everything so you can style everything from scratch */
|
||||
}
|
||||
|
||||
/* Global Styles */
|
||||
.bar0 {
|
||||
font-size: 18px;
|
||||
background-color: #1d1f21;
|
||||
color: #c5c8c6;
|
||||
padding: 10px;
|
||||
border-radius: 16px;
|
||||
} .bar1 {
|
||||
font-size: 18px;
|
||||
background-color: #1d1f21;
|
||||
color: #c5c8c6;
|
||||
padding: 10px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/* Styles on classes (see eww.yuck for more information) */
|
||||
|
||||
.left_status {
|
||||
all: unset;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
.right_status slider {
|
||||
all: unset;
|
||||
color: #1d1f21;
|
||||
}
|
||||
|
||||
.powermenu {
|
||||
all: unset;
|
||||
color: #1d2594;
|
||||
margin-right: 23px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
} .zero scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #373b41;
|
||||
border-radius: 10px;
|
||||
min-width: 100px;
|
||||
} .zero scale trough {
|
||||
all: unset;
|
||||
background-color: #373b41;
|
||||
border-radius: 50px;
|
||||
min-height: 10px;
|
||||
min-width: 100px;
|
||||
margin-left: 13px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
} .non-zero scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #cc6666;
|
||||
background-image: linear-gradient(to right, #81a2be, #8abeb7, #b294bb);
|
||||
border-radius: 10px;
|
||||
min-width: 7px;
|
||||
} .non-zero scale trough {
|
||||
all: unset;
|
||||
background-color: #373b41;
|
||||
border-radius: 50px;
|
||||
min-height: 10px;
|
||||
min-width: 100px;
|
||||
margin-left: 13px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.label {
|
||||
color: #c5c8c6;
|
||||
}
|
||||
.label:hover {
|
||||
color: #cc6666;
|
||||
}
|
||||
|
||||
.workspaces button {
|
||||
color: #c5c8c6;
|
||||
font-size: 17px;
|
||||
} .workspaces button:hover {
|
||||
color: #cc6666;
|
||||
}
|
170
config/eww/eww.yuck
Normal file
170
config/eww/eww.yuck
Normal file
|
@ -0,0 +1,170 @@
|
|||
;; Bars
|
||||
|
||||
;; Variables
|
||||
(defvar volume "100")
|
||||
(defvar brightness "100")
|
||||
|
||||
;; Minimum width for sliders start at 7px. If the value is zero, then the slider is made empty.
|
||||
(defvar metric-volume "non-zero")
|
||||
(defvar metric-brightness "non-zero")
|
||||
|
||||
(defpoll time :interval "10s"
|
||||
"date '+%H:%M %b %d, %Y'")
|
||||
|
||||
(deflisten music :initial ""
|
||||
"playerctl --follow metadata --format '{{ artist }} - {{ title }}' || true")
|
||||
|
||||
;; workspaces
|
||||
;; monitor 0
|
||||
(defvar workspace_1_monitor_0 "")
|
||||
(defvar workspace_2_monitor_0 "")
|
||||
(defvar workspace_3_monitor_0 "")
|
||||
(defvar workspace_4_monitor_0 "")
|
||||
(defvar workspace_5_monitor_0 "")
|
||||
(defvar workspace_6_monitor_0 "")
|
||||
(defvar workspace_7_monitor_0 "")
|
||||
(defvar workspace_8_monitor_0 "")
|
||||
(defvar workspace_9_monitor_0 "")
|
||||
|
||||
;; monitor 1
|
||||
(defvar workspace_1_monitor_1 "")
|
||||
(defvar workspace_2_monitor_1 "")
|
||||
(defvar workspace_3_monitor_1 "")
|
||||
(defvar workspace_4_monitor_1 "")
|
||||
(defvar workspace_5_monitor_1 "")
|
||||
(defvar workspace_6_monitor_1 "")
|
||||
(defvar workspace_7_monitor_1 "")
|
||||
(defvar workspace_8_monitor_1 "")
|
||||
(defvar workspace_9_monitor_1 "")
|
||||
|
||||
;; Full Bar
|
||||
;; monitor 0
|
||||
(defwidget bar0 []
|
||||
(centerbox :orientation "h"
|
||||
(left_status)
|
||||
(workspaces_monitor_0)
|
||||
;;(music)
|
||||
(right_status)))
|
||||
|
||||
;; monitor 1
|
||||
(defwidget bar1 []
|
||||
(centerbox :orientation "h"
|
||||
(left_status)
|
||||
(workspaces_monitor_1)
|
||||
;;(music)
|
||||
(right_status)))
|
||||
|
||||
;; Bar Sections
|
||||
;; left
|
||||
(defwidget left_status []
|
||||
(box :class "left_status" :orientation "h" :space-evenly false :halign "start"
|
||||
time))
|
||||
|
||||
;; right
|
||||
(defwidget right_status []
|
||||
(box :class "right_status" :orientation "h" :space-evenly false :halign "end"
|
||||
(metric-volume :label ""
|
||||
:value volume
|
||||
:onchange "scripts/change-volume.sh {}%")
|
||||
(metric-brightness :label ""
|
||||
:value brightness
|
||||
:onchange "scripts/change-brightness.sh {}%")
|
||||
;(metric :label ""
|
||||
; :value {EWW_RAM.used_mem_perc}
|
||||
; :onchange "")
|
||||
;(metric :label ""
|
||||
; :value {EWW_CPU.avg}
|
||||
; :onchange "")
|
||||
(button :class "powermenu" :onclick "~/.config/fuzzel/scripts/powermenu.sh" "")))
|
||||
|
||||
;; monitor 0
|
||||
(defwidget workspaces_monitor_0 []
|
||||
(box :class "workspaces"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:spacing 10
|
||||
(button :onclick "scripts/change-workspace.sh 1" "${workspace_1_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 2" "${workspace_2_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 3" "${workspace_3_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 4" "${workspace_4_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 5" "${workspace_5_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 6" "${workspace_6_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 7" "${workspace_7_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 8" "${workspace_8_monitor_0}" )
|
||||
(button :onclick "scripts/change-workspace.sh 9" "${workspace_9_monitor_0}" )))
|
||||
|
||||
;; monitor 1
|
||||
(defwidget workspaces_monitor_1 []
|
||||
(box :class "workspaces"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:spacing 10
|
||||
(button :onclick "scripts/change-workspace.sh 1" "${workspace_1_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 2" "${workspace_2_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 3" "${workspace_3_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 4" "${workspace_4_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 5" "${workspace_5_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 6" "${workspace_6_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 7" "${workspace_7_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 8" "${workspace_8_monitor_1}" )
|
||||
(button :onclick "scripts/change-workspace.sh 9" "${workspace_9_monitor_1}" )))
|
||||
|
||||
;; Bar Modules
|
||||
(defwidget music []
|
||||
(box :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
{music != "" ? "🎵${music}" : ""}))
|
||||
|
||||
;; Volume slider
|
||||
(defwidget metric-volume [label value onchange]
|
||||
(box :orientation "h"
|
||||
:class metric-volume
|
||||
:space-evenly false
|
||||
(button :class "label" :onclick "scripts/toggle-volume.sh" label)
|
||||
(scale :min 0
|
||||
:max 100
|
||||
:active {onchange != ""}
|
||||
:value value
|
||||
:onchange onchange)))
|
||||
|
||||
;; Brightness slider
|
||||
(defwidget metric-brightness [label value onchange]
|
||||
(box :orientation "h"
|
||||
:class metric-brightness
|
||||
:space-evenly false
|
||||
(button :class "label" :onclick "scripts/toggle-brightness.sh" label)
|
||||
(scale :min 0
|
||||
:max 101
|
||||
:active {onchange != ""}
|
||||
:value value
|
||||
:onchange onchange)))
|
||||
|
||||
;; Total Window definitions
|
||||
;; monitor 0
|
||||
(defwindow bar0
|
||||
:monitor 0
|
||||
:windowtype "dock"
|
||||
:geometry (geometry :x "0%"
|
||||
:y "5px"
|
||||
:width "98%"
|
||||
:height "35px"
|
||||
:anchor "top center")
|
||||
:exclusive true
|
||||
:reserve (struts :side "top" :distance "4%")
|
||||
(bar0))
|
||||
|
||||
;; monitor 1
|
||||
(defwindow bar1
|
||||
:monitor 1
|
||||
:geometry (geometry :x "0%"
|
||||
:y "5px"
|
||||
:width "98%"
|
||||
:height "35px"
|
||||
:anchor "top center")
|
||||
:exclusive true
|
||||
:reserve (struts :side "top" :distance "4%")
|
||||
(bar1))
|
1
config/eww/scripts/.brightness-off
Normal file
1
config/eww/scripts/.brightness-off
Normal file
|
@ -0,0 +1 @@
|
|||
false
|
1
config/eww/scripts/.previous-brightness
Normal file
1
config/eww/scripts/.previous-brightness
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
1
config/eww/scripts/.previous-volume
Normal file
1
config/eww/scripts/.previous-volume
Normal file
|
@ -0,0 +1 @@
|
|||
99
|
13
config/eww/scripts/change-brightness.sh
Executable file
13
config/eww/scripts/change-brightness.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
doas /usr/bin/brightnessctl s $1
|
||||
|
||||
BRIGHTNESS=$(echo $1 | sed 's/%//')
|
||||
|
||||
eww update brightness=$BRIGHTNESS
|
||||
|
||||
if [ $BRIGHTNESS -le 1 ]; then
|
||||
eww update metric-brightness="zero"
|
||||
else
|
||||
eww update metric-brightness="non-zero"
|
||||
fi
|
||||
|
14
config/eww/scripts/change-volume.sh
Executable file
14
config/eww/scripts/change-volume.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
SINK=$(pactl get-default-sink)
|
||||
|
||||
pactl set-sink-volume $SINK $1
|
||||
|
||||
VOLUME=$(pactl get-sink-volume $SINK | awk '{print $5}' | head -n1 | sed 's/%//')
|
||||
|
||||
eww update volume=$VOLUME
|
||||
|
||||
if [ $VOLUME -eq 0 ]; then
|
||||
eww update metric-volume="zero"
|
||||
else
|
||||
eww update metric-volume="non-zero"
|
||||
fi
|
3
config/eww/scripts/change-workspace.sh
Executable file
3
config/eww/scripts/change-workspace.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
hyprctl dispatch workspace $1
|
||||
$HOME/.config/eww/scripts/workspaces.sh
|
50
config/eww/scripts/toggle-brightness.sh
Executable file
50
config/eww/scripts/toggle-brightness.sh
Executable file
|
@ -0,0 +1,50 @@
|
|||
#!/bin/sh
|
||||
# The Brightness (Before Turning Brightness Off)
|
||||
STATUS_FILE="$HOME/.config/eww/scripts/.previous-brightness"
|
||||
# Whether or not Brightness is Currently Off
|
||||
STATUS_FILE2="$HOME/.config/eww/scripts/.brightness-off"
|
||||
# The Brightness when Pressing the Button
|
||||
BRIGHTNESS=$(brightnessctl | head -2 | tail +2 | awk '{print $4}' | tr -cd '[[:digit:]]')
|
||||
|
||||
# If Brightness is Turned off,
|
||||
# Then Set the Brightnes to the
|
||||
# Brightness at the time the Brightness was Turned Off
|
||||
if $(cat $STATUS_FILE2); then
|
||||
# If the Brightness is not zero
|
||||
# (it was changed with the slider rather than the button),
|
||||
# Turn the brightness off again.
|
||||
if [ $BRIGHTNESS -gt 0 ]; then
|
||||
eww update brightness=0
|
||||
# Make the slider empty
|
||||
eww update metric-brightness="zero"
|
||||
# Send the Brightness when pressing the button to the status file,
|
||||
# so that the program sets that value next time.
|
||||
echo $BRIGHTNESS > $STATUS_FILE
|
||||
# Set the Brightness to 0
|
||||
doas /usr/bin/brightnessctl s 0%
|
||||
fi
|
||||
doas /usr/bin/brightnessctl s $(cat $STATUS_FILE)%
|
||||
# Then Update the Value that is seen by Eww (Eww will now display than amount)
|
||||
eww update brightness=$(cat $STATUS_FILE)
|
||||
# If Eww Does not think think that the brightness is zero,
|
||||
# Then make sure that the minimum slider width is 7px.
|
||||
# If The Brightness (Before Turning Brighness off is zero, then leave the slider empty.
|
||||
if [ $(eww get brightness) -ne 0 ]; then
|
||||
eww update metric-brightness="non-zero"
|
||||
fi
|
||||
# The Brightness is no longer turned off.
|
||||
# Next time the button is pressed, the other path will be taken.
|
||||
echo false > $STATUS_FILE2
|
||||
# If Brightness is not off, turn it off
|
||||
else
|
||||
eww update brightness=0
|
||||
# Make the slider empty
|
||||
eww update metric-brightness="zero"
|
||||
# Send the Brightness when pressing the button to the status file,
|
||||
# so that the program sets that value next time.
|
||||
echo $BRIGHTNESS > $STATUS_FILE
|
||||
# Tell the program that Brightness is Turned Off
|
||||
echo true > $STATUS_FILE2
|
||||
# Set the Brightness to 0
|
||||
doas /usr/bin/brightnessctl s 0%
|
||||
fi
|
15
config/eww/scripts/toggle-volume.sh
Executable file
15
config/eww/scripts/toggle-volume.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
STATUS_FILE="$HOME/.config/eww/scripts/.previous-volume"
|
||||
SINK=$(pactl get-default-sink)
|
||||
VOLUME=$(pactl get-sink-volume $SINK | awk '{print $5}' | head -n1 | sed 's/%//')
|
||||
|
||||
if [ $VOLUME -eq 0 ]; then
|
||||
pactl set-sink-volume $SINK $(cat $STATUS_FILE)%
|
||||
if [ $(eww get volume) -ne 0 ]; then
|
||||
eww update metric-volume="non-zero"
|
||||
fi
|
||||
else
|
||||
pactl set-sink-volume $SINK 0%
|
||||
echo $VOLUME > $STATUS_FILE
|
||||
eww update metric-volume="zero"
|
||||
fi
|
3
config/eww/scripts/volume.sh
Executable file
3
config/eww/scripts/volume.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
SINK=$(pactl get-default-sink)
|
||||
pactl get-sink-volume $SINK | awk '{print $5}' | head -n1 | sed 's/%//'
|
42
config/eww/scripts/workspaces.sh
Executable file
42
config/eww/scripts/workspaces.sh
Executable file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
ACTIVE_MONITOR=$(hyprctl activeworkspace | grep "monitorID:" | awk '{print $2}')
|
||||
ACTIVE_WORKSPACE=$(hyprctl monitors | grep -A 6 "(ID ${ACTIVE_MONITOR})" | tail -n1 | awk '{print $4}' | tr -d '()')
|
||||
|
||||
NUMBER_OF_MONITORS=$(expr $(hyprctl monitors | grep " " | wc -l) / 17 - 1)
|
||||
i=0
|
||||
while [ "$i" -le "$NUMBER_OF_MONITORS" ]; do
|
||||
if [ "$ACTIVE_MONITOR" -eq "$i" ]; then
|
||||
WORKSPACE_1=""
|
||||
WORKSPACE_2=""
|
||||
WORKSPACE_3=""
|
||||
WORKSPACE_4=""
|
||||
WORKSPACE_5=""
|
||||
WORKSPACE_6=""
|
||||
WORKSPACE_7=""
|
||||
WORKSPACE_8=""
|
||||
WORKSPACE_9=""
|
||||
|
||||
if [ $ACTIVE_WORKSPACE -eq 1 ]; then WORKSPACE_1=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 2 ]; then WORKSPACE_2=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 3 ]; then WORKSPACE_3=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 4 ]; then WORKSPACE_4=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 5 ]; then WORKSPACE_5=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 6 ]; then WORKSPACE_6=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 7 ]; then WORKSPACE_7=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 8 ]; then WORKSPACE_8=""; fi
|
||||
if [ $ACTIVE_WORKSPACE -eq 9 ]; then WORKSPACE_9=""; fi
|
||||
|
||||
eww update workspace_1_monitor_${i}=$WORKSPACE_1
|
||||
eww update workspace_2_monitor_${i}=$WORKSPACE_2
|
||||
eww update workspace_3_monitor_${i}=$WORKSPACE_3
|
||||
eww update workspace_4_monitor_${i}=$WORKSPACE_4
|
||||
eww update workspace_5_monitor_${i}=$WORKSPACE_5
|
||||
eww update workspace_6_monitor_${i}=$WORKSPACE_6
|
||||
eww update workspace_7_monitor_${i}=$WORKSPACE_7
|
||||
eww update workspace_8_monitor_${i}=$WORKSPACE_8
|
||||
eww update workspace_9_monitor_${i}=$WORKSPACE_9
|
||||
fi
|
||||
i=$(expr $i + 1)
|
||||
done
|
||||
|
||||
# Create a set of workspace variables in eww config for each monitor
|
73
config/foot/foot.ini
Normal file
73
config/foot/foot.ini
Normal file
|
@ -0,0 +1,73 @@
|
|||
[cursor]
|
||||
color=1d1f21 aeafad
|
||||
|
||||
[colors]
|
||||
alpha=1
|
||||
foreground=c5c8c6
|
||||
background=1d1f21
|
||||
|
||||
regular0=1d1f21
|
||||
regular1=912226
|
||||
regular2=778900
|
||||
regular3=ae7b00
|
||||
regular4=1d2594
|
||||
regular5=682a9b
|
||||
regular6=2b6651
|
||||
regular7=929593
|
||||
|
||||
bright0=969896
|
||||
bright1=cc6666
|
||||
bright2=b5bd68
|
||||
bright3=f0c674
|
||||
bright4=81a2be
|
||||
bright5=b294bb
|
||||
bright6=8abeb7
|
||||
bright7=ecebec
|
||||
|
||||
[text-bindings]
|
||||
\x1b[1;2F = Shift+KP_End
|
||||
\x1b[1;2H = Shift+KP_Home
|
||||
|
||||
\x1b[27;6;65~ = Control+Shift+a
|
||||
\x1b[27;6;66~ = Control+Shift+b
|
||||
#\x1b[27;6;67~ = Control+Shift+c
|
||||
\x1b[27;6;68~ = Control+Shift+d
|
||||
\x1b[27;6;69~ = Control+Shift+e
|
||||
\x1b[27;6;70~ = Control+Shift+f
|
||||
\x1b[27;6;71~ = Control+Shift+g
|
||||
\x1b[27;6;72~ = Control+Shift+h
|
||||
\x1b[27;6;73~ = Control+Shift+i
|
||||
\x1b[27;6;74~ = Control+Shift+j
|
||||
\x1b[27;6;75~ = Control+Shift+k
|
||||
\x1b[27;6;76~ = Control+Shift+l
|
||||
\x1b[27;6;77~ = Control+Shift+m
|
||||
#\x1b[27;6;78~ = Control+Shift+n
|
||||
#\x1b[27;6;79~ = Control+Shift+o
|
||||
\x1b[27;6;80~ = Control+Shift+p
|
||||
\x1b[27;6;81~ = Control+Shift+q
|
||||
#\x1b[27;6;82~ = Control+Shift+r
|
||||
\x1b[27;6;83~ = Control+Shift+s
|
||||
\x1b[27;6;84~ = Control+Shift+t
|
||||
#\x1b[27;6;85~ = Control+Shift+u
|
||||
#\x1b[27;6;86~ = Control+Shift+v
|
||||
\x1b[27;6;87~ = Control+Shift+w
|
||||
\x1b[27;6;88~ = Control+Shift+x
|
||||
#\x1b[27;6;89~ = Control+Shift+y
|
||||
\x1b[27;6;90~ = Control+Shift+z
|
||||
|
||||
[key-bindings]
|
||||
prompt-prev=none
|
||||
prompt-next=none
|
||||
|
||||
pipe-command-output=[wl-copy] Control+Shift+y
|
||||
|
||||
[scrollback]
|
||||
indicator-position=none
|
||||
|
||||
[main]
|
||||
shell=zsh -c "fastfetch; zsh -i"
|
||||
pad=10x10
|
||||
font=Mononoki Nerd Font Mono:size=11
|
||||
font-bold=Mononoki Nerd Font Mono:size=11:weight=bold
|
||||
font-italic=Mononoki Nerd Font Mono:size=11:stant=italic
|
||||
font-bold-italic=Mononoki Nerd Font Mono:size=11:weight=bold:slant=italic
|
90
config/fuzzel/fuzzel.ini
Normal file
90
config/fuzzel/fuzzel.ini
Normal file
|
@ -0,0 +1,90 @@
|
|||
# output=<not set>
|
||||
font=Mononoki Nerd Font Mono
|
||||
# dpi-aware=auto
|
||||
# prompt=>
|
||||
# icon-theme=hicolor
|
||||
icons-enabled=no
|
||||
# fields=filename,name,generic
|
||||
# password-character=*
|
||||
# filter-desktop=no
|
||||
# fuzzy=yes
|
||||
# show-actions=no
|
||||
# terminal=$TERMINAL -e # Note: you cannot actually use environment variables here
|
||||
# launch-prefix=<not set>
|
||||
|
||||
# lines=15
|
||||
width=25
|
||||
# tabs=8
|
||||
# horizontal-pad=40
|
||||
# vertical-pad=8
|
||||
# inner-pad=0
|
||||
|
||||
# image-size-ratio=0.5
|
||||
|
||||
# line-height=<use font metrics>
|
||||
# letter-spacing=0
|
||||
|
||||
# layer = top
|
||||
# exit-on-keyboard-focus-loss = yes
|
||||
|
||||
[colors]
|
||||
background=faf4edee
|
||||
text=575279ff
|
||||
match=dd9024ff
|
||||
selection=56949fee
|
||||
selection-text=e5e9f0ff
|
||||
border=56949fff
|
||||
|
||||
[border]
|
||||
width=2
|
||||
radius=0
|
||||
|
||||
[dmenu]
|
||||
# mode=text # text|index
|
||||
# exit-immediately-if-empty=no
|
||||
|
||||
[key-bindings]
|
||||
# cancel=Escape Control+g
|
||||
# execute=Return KP_Enter Control+y
|
||||
# execute-or-next=Tab
|
||||
# cursor-left=Left Control+b
|
||||
# cursor-left-word=Control+Left Mod1+b
|
||||
# cursor-right=Right Control+f
|
||||
# cursor-right-word=Control+Right Mod1+f
|
||||
# cursor-home=Home Control+a
|
||||
# cursor-end=End Control+e
|
||||
# delete-prev=BackSpace
|
||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||
# delete-next=Delete KP_Delete Control+d
|
||||
# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
|
||||
# delete-line=Control+k
|
||||
# prev=Up Control+p
|
||||
# prev-with-wrap=ISO_Left_Tab
|
||||
# prev-page=Page_Up KP_Page_Up
|
||||
# next=Down Control+n
|
||||
# next-with-wrap=none
|
||||
# next-page=Page_Down KP_Page_Down
|
||||
|
||||
# custom-N: *dmenu mode only*. Like execute, but with a non-zero
|
||||
# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
|
||||
# with 12, and so on.
|
||||
|
||||
# custom-1=Mod1+1
|
||||
# custom-2=Mod1+2
|
||||
# custom-3=Mod1+3
|
||||
# custom-4=Mod1+4
|
||||
# custom-5=Mod1+5
|
||||
# custom-6=Mod1+6
|
||||
# custom-7=Mod1+7
|
||||
# custom-8=Mod1+8
|
||||
# custom-9=Mod1+9
|
||||
# custom-10=Mod1+0
|
||||
# custom-11=Mod1+exclam
|
||||
# custom-12=Mod1+at
|
||||
# custom-13=Mod1+numbersign
|
||||
# custom-14=Mod1+dollar
|
||||
# custom-15=Mod1+percent
|
||||
# custom-16=Mod1+dead_circumflex
|
||||
# custom-17=Mod1+ampersand
|
||||
# custom-18=Mod1+asterix
|
||||
# custom-19=Mod1+parentleft
|
15
config/fuzzel/scripts/pipewire.sh
Executable file
15
config/fuzzel/scripts/pipewire.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
LAUNCHER_CMD="fuzzel --dmenu"
|
||||
DEVICES=$(pactl list sinks short | awk '{print $2}' | sort | uniq)
|
||||
|
||||
SELECTED_OPTION=$(echo "$DEVICES" | ${LAUNCHER_CMD})
|
||||
|
||||
i=1
|
||||
while [ "$i" -le $(echo "$DEVICES" | wc -l) ]; do
|
||||
device=$(echo "$DEVICES" | head -n${i} | tail +${i})
|
||||
echo $(test "$device" = "$SELECTED_OPTION")
|
||||
if $(test "$device" = "$SELECTED_OPTION"); then
|
||||
pactl set-default-sink "$device"
|
||||
fi
|
||||
i=$(expr $i + 1 )
|
||||
done
|
15
config/fuzzel/scripts/powermenu.sh
Executable file
15
config/fuzzel/scripts/powermenu.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
LAUNCHER_CMD="fuzzel --dmenu"
|
||||
OPTIONS="$(echo -e "exit\nreboot\npoweroff")"
|
||||
|
||||
SELECTED_OPTION=$(echo "$OPTIONS" | $LAUNCHER_CMD)
|
||||
|
||||
if $(test "$SELECTED_OPTION" = "exit"); then
|
||||
hyprctl dispatch exit
|
||||
elif $(test "$SELECTED_OPTION" = "reboot"); then
|
||||
doas /sbin/reboot
|
||||
elif $(test "$SELECTED_OPTION" = "poweroff"); then
|
||||
doas /sbin/poweroff
|
||||
else
|
||||
set -e
|
||||
fi
|
247
config/hyprland/hyprland.conf
Normal file
247
config/hyprland/hyprland.conf
Normal file
|
@ -0,0 +1,247 @@
|
|||
monitor = eDP-1, 1920x1080@60, 0x0, 1
|
||||
monitor = HDMI-A-2, 1920x1080@60, 1920x0, 1
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE, 24
|
||||
env = QT_QPA_PLATFORMTHEME, qt6ct
|
||||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant = dvorak
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 10
|
||||
gaps_out = 40
|
||||
border_size = 3
|
||||
col.active_border = rgba(8abeb7ee) rgba(b294bbee) rgba(81a2beee) 45deg
|
||||
col.inactive_border = rgba(373b41f0)
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
decoration {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
rounding = 3
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
size = 0
|
||||
passes = 3
|
||||
}
|
||||
|
||||
drop_shadow = yes
|
||||
shadow_range = 7
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(1d1f21ee)
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
new_is_master = true
|
||||
}
|
||||
|
||||
gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = off
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||
#device:epic-mouse-v1 {
|
||||
# sensitivity = -0.5
|
||||
#}
|
||||
|
||||
# Example windowrule v1
|
||||
# windowrule = float, ^(kitty)$
|
||||
# Example windowrule v2
|
||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = ALT
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, Q, exec, foot
|
||||
bind = $mainMod SHIFT, Q, exec, qutebrowser
|
||||
bind = $mainMod SHIFT, E, exec, element-desktop
|
||||
bind = $mainMod, K, killactive,
|
||||
bind = $mainMod SHIFT, X, exit,
|
||||
bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, C, exec, sh -c color-picker
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, P, exec, fuzzel
|
||||
bind = $mainMod, A, exec, ~/.config/fuzzel/scripts/pipewire.sh
|
||||
#bind = $mainMod, O, exec, ~/.config/hypr/scripts/monitor.sh
|
||||
bind = $mainMod, W, pseudo, # dwindle
|
||||
bind = $mainMod, S, togglesplit, # dwindle
|
||||
bind = $mainMod, M, fullscreen, 1
|
||||
bind = $mainMod SHIFT, M, fullscreen
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, D, movefocus, l
|
||||
bind = $mainMod, H, movefocus, d
|
||||
bind = $mainMod, T, movefocus, u
|
||||
bind = $mainMod, N, movefocus, r
|
||||
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, d
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, r
|
||||
|
||||
bind = $mainMod SHIFT, D, movewindow, l
|
||||
bind = $mainMod SHIFT, H, movewindow, d
|
||||
bind = $mainMod SHIFT, T, movewindow, u
|
||||
bind = $mainMod SHIFT, N, movewindow, r
|
||||
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
||||
bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
|
||||
bind = $mainMod, 1, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 2, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 3, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 4, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 5, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 6, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 7, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 8, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = $mainMod, 9, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
|
||||
# Move active window to a workspace with CTRL + [0-9]
|
||||
bind = CTRL, 1, movetoworkspace, 1
|
||||
bind = CTRL, 2, movetoworkspace, 2
|
||||
bind = CTRL, 3, movetoworkspace, 3
|
||||
bind = CTRL, 4, movetoworkspace, 4
|
||||
bind = CTRL, 5, movetoworkspace, 5
|
||||
bind = CTRL, 6, movetoworkspace, 6
|
||||
bind = CTRL, 7, movetoworkspace, 7
|
||||
bind = CTRL, 8, movetoworkspace, 8
|
||||
bind = CTRL, 9, movetoworkspace, 9
|
||||
|
||||
bind = CTRL, 1, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 2, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 3, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 4, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 5, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 6, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 7, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 8, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
bind = CTRL, 9, exec, ~/.config/eww/scripts/workspaces.sh
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Resize #
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# will switch to a submap called resize
|
||||
bind = $mainMod, R, submap, resize
|
||||
|
||||
# will start a submap called "resize"
|
||||
submap = resize
|
||||
|
||||
# sets repeatable binds for resizing the active window
|
||||
binde= , right, resizeactive, 10 0
|
||||
binde= , left, resizeactive, -10 0
|
||||
binde= , up, resizeactive, 0 -10
|
||||
binde= , down, resizeactive, 0 10
|
||||
|
||||
binde = , N, resizeactive, 10 0
|
||||
binde = , D, resizeactive, -10 0
|
||||
binde = , T, resizeactive, 0 -10
|
||||
binde = , H, resizeactive, 0 10
|
||||
|
||||
# use reset to go back to the global submap
|
||||
bind = , escape, submap, reset
|
||||
|
||||
# will reset the submap, meaning end the current one and return to the global one
|
||||
submap = reset
|
||||
|
||||
# Screenshots #
|
||||
|
||||
# Print: Current window
|
||||
# SHIFT+PRINT: Select area
|
||||
# Alt+PRINT: Current output
|
||||
# Ctrl+PRINT: All outputs
|
||||
|
||||
bind = , PRINT, exec, grimblast copysave active
|
||||
bind = SHIFT, PRINT, exec, grimblast copysave area
|
||||
bind = $mainMod, PRINT, exec, grimblast copysave output
|
||||
bind = $mainMod SHIFT, PRINT, exec, grimblast copysave screen
|
||||
|
||||
# Environmental Variables #
|
||||
#env = WLR_NO_HARDWARE_CURSORS, 1
|
||||
|
||||
# Autostart
|
||||
exec-once="pipewire"
|
||||
exec-once="pipewire-pulse"
|
||||
exec-once="wireplumber"
|
||||
|
||||
exec-once=wbg ~/.local/share/wallpapers/wallpaper.jpg
|
||||
|
||||
exec-once=eww daemon
|
||||
exec-once=eww open bar0
|
||||
exec-once=eww open bar1
|
||||
|
||||
exec-once=echo false > ~/.config/eww/scritps/.brightness-off
|
||||
exec-once=echo 100 > ~/.config/eww/scritps/.previos-volume
|
||||
exec-once=echo 100 > ~/.config/eww/scritps/.previos-brightness
|
||||
|
||||
exec-once=swaync
|
1
config/hyprland/scripts/.monitor_status
Normal file
1
config/hyprland/scripts/.monitor_status
Normal file
|
@ -0,0 +1 @@
|
|||
true
|
11
config/hyprland/scripts/monitor.sh
Executable file
11
config/hyprland/scripts/monitor.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
STATUS_FILE="$HOME/.config/hypr/scripts/.monitor_status"
|
||||
|
||||
status=$(cat $STATUS_FILE)
|
||||
if $status ; then
|
||||
echo false > $STATUS_FILE
|
||||
wlr-randr --output eDP-1 --off
|
||||
else
|
||||
echo true > $STATUS_FILE
|
||||
wlr-randr --output eDP-1 --on
|
||||
fi
|
759
config/ranger/rc.conf
Normal file
759
config/ranger/rc.conf
Normal file
|
@ -0,0 +1,759 @@
|
|||
# ===================================================================
|
||||
# This file contains the default startup commands for ranger.
|
||||
# To change them, it is recommended to create either /etc/ranger/rc.conf
|
||||
# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom
|
||||
# commands there.
|
||||
#
|
||||
# If you copy this whole file there, you may want to set the environment
|
||||
# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.
|
||||
#
|
||||
# The purpose of this file is mainly to define keybindings and settings.
|
||||
# For running more complex python code, please create a plugin in "plugins/" or
|
||||
# a command in "commands.py".
|
||||
#
|
||||
# Each line is a command that will be run before the user interface
|
||||
# is initialized. As a result, you can not use commands which rely
|
||||
# on the UI such as :delete or :mark.
|
||||
# ===================================================================
|
||||
|
||||
# ===================================================================
|
||||
# == Options
|
||||
# ===================================================================
|
||||
|
||||
# Which viewmode should be used? Possible values are:
|
||||
# miller: Use miller columns which show multiple levels of the hierarchy
|
||||
# multipane: Midnight-commander like multipane view showing all tabs next
|
||||
# to each other
|
||||
set viewmode miller
|
||||
#set viewmode multipane
|
||||
|
||||
# How many columns are there, and what are their relative widths?
|
||||
set column_ratios 1,3,4
|
||||
|
||||
# Which files should be hidden? (regular expression)
|
||||
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
|
||||
|
||||
# Show hidden files? You can toggle this by typing 'zh'
|
||||
set show_hidden false
|
||||
|
||||
# Ask for a confirmation when running the "delete" command?
|
||||
# Valid values are "always", "never", "multiple" (default)
|
||||
# With "multiple", ranger will ask only if you delete multiple files at once.
|
||||
set confirm_on_delete multiple
|
||||
|
||||
# Use non-default path for file preview script?
|
||||
# ranger ships with scope.sh, a script that calls external programs (see
|
||||
# README.md for dependencies) to preview images, archives, etc.
|
||||
#set preview_script ~/.config/ranger/scope.sh
|
||||
|
||||
# Use the external preview script or display simple plain text or image previews?
|
||||
set use_preview_script true
|
||||
|
||||
# Automatically count files in the directory, even before entering them?
|
||||
set automatically_count_files true
|
||||
|
||||
# Open all images in this directory when running certain image viewers
|
||||
# like feh or sxiv? You can still open selected files by marking them.
|
||||
set open_all_images true
|
||||
|
||||
# Be aware of version control systems and display information.
|
||||
set vcs_aware false
|
||||
|
||||
# State of the four backends git, hg, bzr, svn. The possible states are
|
||||
# disabled, local (only show local info), enabled (show local and remote
|
||||
# information).
|
||||
set vcs_backend_git enabled
|
||||
set vcs_backend_hg disabled
|
||||
set vcs_backend_bzr disabled
|
||||
set vcs_backend_svn disabled
|
||||
|
||||
# Truncate the long commit messages to this length when shown in the statusbar.
|
||||
set vcs_msg_length 50
|
||||
|
||||
# Use one of the supported image preview protocols
|
||||
set preview_images true
|
||||
|
||||
# Set the preview image method. Supported methods:
|
||||
#
|
||||
# * w3m (default):
|
||||
# Preview images in full color with the external command "w3mimgpreview"?
|
||||
# This requires the console web browser "w3m" and a supported terminal.
|
||||
# It has been successfully tested with "xterm" and "urxvt" without tmux.
|
||||
#
|
||||
# * iterm2:
|
||||
# Preview images in full color using iTerm2 image previews
|
||||
# (http://iterm2.com/images.html). This requires using iTerm2 compiled
|
||||
# with image preview support.
|
||||
#
|
||||
# This feature relies on the dimensions of the terminal's font. By default, a
|
||||
# width of 8 and height of 11 are used. To use other values, set the options
|
||||
# iterm2_font_width and iterm2_font_height to the desired values.
|
||||
#
|
||||
# * terminology:
|
||||
# Previews images in full color in the terminology terminal emulator.
|
||||
# Supports a wide variety of formats, even vector graphics like svg.
|
||||
#
|
||||
# * urxvt:
|
||||
# Preview images in full color using urxvt image backgrounds. This
|
||||
# requires using urxvt compiled with pixbuf support.
|
||||
#
|
||||
# * urxvt-full:
|
||||
# The same as urxvt but utilizing not only the preview pane but the
|
||||
# whole terminal window.
|
||||
#
|
||||
# * kitty:
|
||||
# Preview images in full color using kitty image protocol.
|
||||
# Requires python PIL or pillow library.
|
||||
# If ranger does not share the local filesystem with kitty
|
||||
# the transfer method is changed to encode the whole image;
|
||||
# while slower, this allows remote previews,
|
||||
# for example during an ssh session.
|
||||
# Tmux is unsupported.
|
||||
#
|
||||
# * ueberzug:
|
||||
# Preview images in full color with the external command "ueberzug".
|
||||
# Images are shown by using a child window.
|
||||
# Only for users who run X11 in GNU/Linux.
|
||||
set preview_images_method w3m
|
||||
|
||||
# Delay in seconds before displaying an image with the w3m method.
|
||||
# Increase it in case of experiencing display corruption.
|
||||
set w3m_delay 0.02
|
||||
|
||||
# Manually adjust the w3mimg offset when using a terminal which needs this
|
||||
set w3m_offset 0
|
||||
|
||||
# Default iTerm2 font size (see: preview_images_method: iterm2)
|
||||
set iterm2_font_width 8
|
||||
set iterm2_font_height 11
|
||||
|
||||
# Use a unicode "..." character to mark cut-off filenames?
|
||||
set unicode_ellipsis false
|
||||
|
||||
# BIDI support - try to properly display file names in RTL languages (Hebrew, Arabic).
|
||||
# Requires the python-bidi pip package
|
||||
set bidi_support false
|
||||
|
||||
# Show dotfiles in the bookmark preview box?
|
||||
set show_hidden_bookmarks true
|
||||
|
||||
# Which colorscheme to use? These colorschemes are available by default:
|
||||
# default, jungle, snow, solarized
|
||||
set colorscheme daybreak
|
||||
|
||||
# Preview files on the rightmost column?
|
||||
# And collapse (shrink) the last column if there is nothing to preview?
|
||||
set preview_files true
|
||||
set preview_directories true
|
||||
set collapse_preview true
|
||||
|
||||
# Wrap long lines in plain text previews?
|
||||
set wrap_plaintext_previews false
|
||||
|
||||
# Save the console history on exit?
|
||||
set save_console_history true
|
||||
|
||||
# Draw the status bar on top of the browser window (default: bottom)
|
||||
set status_bar_on_top false
|
||||
|
||||
# Draw a progress bar in the status bar which displays the average state of all
|
||||
# currently running tasks which support progress bars?
|
||||
set draw_progress_bar_in_status_bar true
|
||||
|
||||
# Draw borders around columns? (separators, outline, both, or none)
|
||||
# Separators are vertical lines between columns.
|
||||
# Outline draws a box around all the columns.
|
||||
# Both combines the two.
|
||||
set draw_borders none
|
||||
|
||||
# Display the directory name in tabs?
|
||||
set dirname_in_tabs false
|
||||
|
||||
# Enable the mouse support?
|
||||
set mouse_enabled true
|
||||
|
||||
# Display the file size in the main column or status bar?
|
||||
set display_size_in_main_column true
|
||||
set display_size_in_status_bar true
|
||||
|
||||
# Display the free disk space in the status bar?
|
||||
set display_free_space_in_status_bar true
|
||||
|
||||
# Display files tags in all columns or only in main column?
|
||||
set display_tags_in_all_columns true
|
||||
|
||||
# Set a title for the window? Updates both `WM_NAME` and `WM_ICON_NAME`
|
||||
set update_title false
|
||||
|
||||
# Set the tmux/screen window-name to "ranger"?
|
||||
set update_tmux_title true
|
||||
|
||||
# Shorten the title if it gets long? The number defines how many
|
||||
# directories are displayed at once, 0 turns off this feature.
|
||||
set shorten_title 3
|
||||
|
||||
# Show hostname in titlebar?
|
||||
set hostname_in_titlebar true
|
||||
|
||||
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
|
||||
set tilde_in_titlebar false
|
||||
|
||||
# How many directory-changes or console-commands should be kept in history?
|
||||
set max_history_size 20
|
||||
set max_console_history_size 50
|
||||
|
||||
# Try to keep so much space between the top/bottom border when scrolling:
|
||||
set scroll_offset 8
|
||||
|
||||
# Flush the input after each key hit? (Noticeable when ranger lags)
|
||||
set flushinput true
|
||||
|
||||
# Padding on the right when there's no preview?
|
||||
# This allows you to click into the space to run the file.
|
||||
set padding_right true
|
||||
|
||||
# Save bookmarks (used with mX and `X) instantly?
|
||||
# This helps to synchronize bookmarks between multiple ranger
|
||||
# instances but leads to *slight* performance loss.
|
||||
# When false, bookmarks are saved when ranger is exited.
|
||||
set autosave_bookmarks true
|
||||
|
||||
# Save the "`" bookmark to disk. This can be used to switch to the last
|
||||
# directory by typing "``".
|
||||
set save_backtick_bookmark true
|
||||
|
||||
# You can display the "real" cumulative size of directories by using the
|
||||
# command :get_cumulative_size or typing "dc". The size is expensive to
|
||||
# calculate and will not be updated automatically. You can choose
|
||||
# to update it automatically though by turning on this option:
|
||||
set autoupdate_cumulative_size false
|
||||
|
||||
# Turning this on makes sense for screen readers:
|
||||
set show_cursor false
|
||||
|
||||
# One of: size, natural, basename, atime, ctime, mtime, type, random
|
||||
set sort natural
|
||||
|
||||
# Additional sorting options
|
||||
set sort_reverse false
|
||||
set sort_case_insensitive true
|
||||
set sort_directories_first true
|
||||
set sort_unicode false
|
||||
|
||||
# Enable this if key combinations with the Alt Key don't work for you.
|
||||
# (Especially on xterm)
|
||||
set xterm_alt_key false
|
||||
|
||||
# Whether to include bookmarks in cd command
|
||||
set cd_bookmarks true
|
||||
|
||||
# Changes case sensitivity for the cd command tab completion
|
||||
set cd_tab_case sensitive
|
||||
|
||||
# Use fuzzy tab completion with the "cd" command. For example,
|
||||
# ":cd /u/lo/b<tab>" expands to ":cd /usr/local/bin".
|
||||
set cd_tab_fuzzy false
|
||||
|
||||
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
|
||||
# disable this feature.
|
||||
set preview_max_size 0
|
||||
|
||||
# The key hint lists up to this size have their sublists expanded.
|
||||
# Otherwise the submaps are replaced with "...".
|
||||
set hint_collapse_threshold 10
|
||||
|
||||
# Add the highlighted file to the path in the titlebar
|
||||
set show_selection_in_titlebar true
|
||||
|
||||
# The delay that ranger idly waits for user input, in milliseconds, with a
|
||||
# resolution of 100ms. Lower delay reduces lag between directory updates but
|
||||
# increases CPU load.
|
||||
set idle_delay 2000
|
||||
|
||||
# When the metadata manager module looks for metadata, should it only look for
|
||||
# a ".metadata.json" file in the current directory, or do a deep search and
|
||||
# check all directories above the current one as well?
|
||||
set metadata_deep_search false
|
||||
|
||||
# Clear all existing filters when leaving a directory
|
||||
set clear_filters_on_dir_change false
|
||||
|
||||
# Disable displaying line numbers in main column.
|
||||
# Possible values: false, absolute, relative.
|
||||
set line_numbers false
|
||||
|
||||
# When line_numbers=relative show the absolute line number in the
|
||||
# current line.
|
||||
set relative_current_zero false
|
||||
|
||||
# Start line numbers from 1 instead of 0
|
||||
set one_indexed false
|
||||
|
||||
# Save tabs on exit
|
||||
set save_tabs_on_exit false
|
||||
|
||||
# Enable scroll wrapping - moving down while on the last item will wrap around to
|
||||
# the top and vice versa.
|
||||
set wrap_scroll false
|
||||
|
||||
# Set the global_inode_type_filter to nothing. Possible options: d, f and l for
|
||||
# directories, files and symlinks respectively.
|
||||
set global_inode_type_filter
|
||||
|
||||
# This setting allows to freeze the list of files to save I/O bandwidth. It
|
||||
# should be 'false' during start-up, but you can toggle it by pressing F.
|
||||
set freeze_files false
|
||||
|
||||
# Print file sizes in bytes instead of the default human-readable format.
|
||||
set size_in_bytes false
|
||||
|
||||
# Warn at startup if RANGER_LEVEL env var is greater than 0, in other words
|
||||
# give a warning when you nest ranger in a subshell started by ranger.
|
||||
# Special value "error" makes the warning more visible.
|
||||
set nested_ranger_warning true
|
||||
|
||||
# ===================================================================
|
||||
# == Local Options
|
||||
# ===================================================================
|
||||
# You can set local options that only affect a single directory.
|
||||
|
||||
# Examples:
|
||||
# setlocal path=~/downloads sort mtime
|
||||
|
||||
# ===================================================================
|
||||
# == Command Aliases in the Console
|
||||
# ===================================================================
|
||||
|
||||
alias e edit
|
||||
alias q quit
|
||||
alias q! quit!
|
||||
alias qa quitall
|
||||
alias qa! quitall!
|
||||
alias qall quitall
|
||||
alias qall! quitall!
|
||||
alias setl setlocal
|
||||
|
||||
alias filter scout -prts
|
||||
alias find scout -aets
|
||||
alias mark scout -mr
|
||||
alias unmark scout -Mr
|
||||
alias search scout -rs
|
||||
alias search_inc scout -rts
|
||||
alias travel scout -aefklst
|
||||
|
||||
# ===================================================================
|
||||
# == Define keys for the browser
|
||||
# ===================================================================
|
||||
|
||||
# Basic
|
||||
map Q quitall
|
||||
map q quit
|
||||
copymap q ZZ ZQ
|
||||
|
||||
map R reload_cwd
|
||||
map F set freeze_files!
|
||||
map <C-r> reset
|
||||
map <C-l> redraw_window
|
||||
map <C-c> abort
|
||||
map <esc> change_mode normal
|
||||
map ~ set viewmode!
|
||||
|
||||
map i display_file
|
||||
map <A-j> scroll_preview 1
|
||||
map <A-k> scroll_preview -1
|
||||
map ? help
|
||||
map W display_log
|
||||
map w taskview_open
|
||||
map S shell $SHELL
|
||||
|
||||
map : console
|
||||
map ; console
|
||||
map ! console shell%space
|
||||
map @ console -p6 shell %%s
|
||||
map # console shell -p%space
|
||||
map s console shell%space
|
||||
map r chain draw_possible_programs; console open_with%space
|
||||
map f console find%space
|
||||
map cd console cd%space
|
||||
|
||||
map <C-p> chain console; eval fm.ui.console.history_move(-1)
|
||||
|
||||
# Change the line mode
|
||||
map Mf linemode filename
|
||||
map Mi linemode fileinfo
|
||||
map Mm linemode mtime
|
||||
map Mh linemode humanreadablemtime
|
||||
map Mp linemode permissions
|
||||
map Ms linemode sizemtime
|
||||
map MH linemode sizehumanreadablemtime
|
||||
map Mt linemode metatitle
|
||||
|
||||
# Tagging / Marking
|
||||
map j tag_toggle
|
||||
map uj tag_remove
|
||||
map "<any> tag_toggle tag=%any
|
||||
map <Space> mark_files toggle=True
|
||||
map v mark_files all=True toggle=True
|
||||
map uv mark_files all=True val=False
|
||||
map V toggle_visual_mode
|
||||
map uV toggle_visual_mode reverse=True
|
||||
|
||||
# For the nostalgics: Midnight Commander bindings
|
||||
map <F1> help
|
||||
map <F2> rename_append
|
||||
map <F3> display_file
|
||||
map <F4> edit
|
||||
map <F5> copy
|
||||
map <F6> cut
|
||||
map <F7> console mkdir%space
|
||||
map <F8> console delete
|
||||
#map <F8> console trash
|
||||
map <F10> exit
|
||||
|
||||
# In case you work on a keyboard with dvorak layout
|
||||
map <UP> move up=1
|
||||
map <DOWN> move down=1
|
||||
map <LEFT> move left=1
|
||||
map <RIGHT> move right=1
|
||||
map <HOME> move to=0
|
||||
map <END> move to=-1
|
||||
map <PAGEDOWN> move down=1 pages=True
|
||||
map <PAGEUP> move up=1 pages=True
|
||||
map <CR> move right=1
|
||||
#map <DELETE> console delete
|
||||
map <INSERT> console touch%space
|
||||
|
||||
# VIM-like
|
||||
copymap <UP> t
|
||||
copymap <DOWN> h
|
||||
copymap <LEFT> d
|
||||
copymap <RIGHT> n
|
||||
copymap <HOME> gg
|
||||
copymap <END> G
|
||||
copymap <PAGEDOWN> <C-F>
|
||||
copymap <PAGEUP> <C-B>
|
||||
|
||||
map H move down=0.5 pages=True
|
||||
map T move up=0.5 pages=True
|
||||
copymap H <C-D>
|
||||
copymap T <C-U>
|
||||
|
||||
# Jumping around
|
||||
map D history_go -1
|
||||
map N history_go 1
|
||||
map ] move_parent 1
|
||||
map [ move_parent -1
|
||||
map } traverse
|
||||
map { traverse_backwards
|
||||
map ) jump_non
|
||||
|
||||
map gh cd ~
|
||||
map ge cd /etc
|
||||
map gu cd /usr
|
||||
map gd cd /dev
|
||||
map gl cd -r .
|
||||
map gL cd -r %f
|
||||
map go cd /opt
|
||||
map gv cd /var
|
||||
map gm cd /media
|
||||
map gi eval fm.cd('/run/media/' + os.getenv('USER'))
|
||||
map gM cd /mnt
|
||||
map gs cd /srv
|
||||
map gp cd /tmp
|
||||
map gr cd /
|
||||
map gR eval fm.cd(ranger.RANGERDIR)
|
||||
map g/ cd /
|
||||
map g? cd /usr/share/doc/ranger
|
||||
|
||||
# External Programs
|
||||
map E edit
|
||||
map ku shell -p du --max-depth=1 -h --apparent-size
|
||||
map kU shell -p du --max-depth=1 -h --apparent-size | sort -rh
|
||||
map yp yank path
|
||||
map yd yank dir
|
||||
map yn yank name
|
||||
map y. yank name_without_extension
|
||||
|
||||
# Filesystem Operations
|
||||
map = chmod
|
||||
|
||||
map cw console rename%space
|
||||
map a rename_append
|
||||
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
|
||||
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
|
||||
|
||||
map pp paste
|
||||
map po paste overwrite=True
|
||||
map pP paste append=True
|
||||
map pO paste overwrite=True append=True
|
||||
map pl paste_symlink relative=False
|
||||
map pL paste_symlink relative=True
|
||||
map phl paste_hardlink
|
||||
map pht paste_hardlinked_subtree
|
||||
map pd console paste dest=
|
||||
map p`<any> paste dest=%any_path
|
||||
map p'<any> paste dest=%any_path
|
||||
|
||||
map kK console delete
|
||||
map kT console trash
|
||||
|
||||
map kk cut
|
||||
map uk uncut
|
||||
map ka cut mode=add
|
||||
map kr cut mode=remove
|
||||
map kt cut mode=toggle
|
||||
|
||||
map yy copy
|
||||
map uy uncut
|
||||
map ya copy mode=add
|
||||
map yr copy mode=remove
|
||||
map yt copy mode=toggle
|
||||
|
||||
# Temporary workarounds
|
||||
map kgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
|
||||
map kG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
|
||||
map kh eval fm.cut(dirarg=dict(down=1), narg=quantifier)
|
||||
map kt eval fm.cut(dirarg=dict(up=1), narg=quantifier)
|
||||
map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
|
||||
map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
|
||||
map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
|
||||
map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
|
||||
|
||||
# Searching
|
||||
map / console search%space
|
||||
map l search_next
|
||||
map N search_next forward=False
|
||||
map ct search_next order=tag
|
||||
map cs search_next order=size
|
||||
map ci search_next order=mimetype
|
||||
map cc search_next order=ctime
|
||||
map cm search_next order=mtime
|
||||
map ca search_next order=atime
|
||||
|
||||
# Tabs
|
||||
map <C-n> tab_new
|
||||
map <C-w> tab_close
|
||||
map <TAB> tab_move 1
|
||||
map <S-TAB> tab_move -1
|
||||
map <A-Right> tab_move 1
|
||||
map <A-Left> tab_move -1
|
||||
map gt tab_move 1
|
||||
map gT tab_move -1
|
||||
map gn tab_new
|
||||
map gc tab_close
|
||||
map uq tab_restore
|
||||
map <a-1> tab_open 1
|
||||
map <a-2> tab_open 2
|
||||
map <a-3> tab_open 3
|
||||
map <a-4> tab_open 4
|
||||
map <a-5> tab_open 5
|
||||
map <a-6> tab_open 6
|
||||
map <a-7> tab_open 7
|
||||
map <a-8> tab_open 8
|
||||
map <a-9> tab_open 9
|
||||
map <a-r> tab_shift 1
|
||||
map <a-l> tab_shift -1
|
||||
|
||||
# Sorting
|
||||
map or set sort_reverse!
|
||||
map oz set sort=random
|
||||
map os chain set sort=size; set sort_reverse=False
|
||||
map ob chain set sort=basename; set sort_reverse=False
|
||||
map on chain set sort=natural; set sort_reverse=False
|
||||
map om chain set sort=mtime; set sort_reverse=False
|
||||
map oc chain set sort=ctime; set sort_reverse=False
|
||||
map oa chain set sort=atime; set sort_reverse=False
|
||||
map ot chain set sort=type; set sort_reverse=False
|
||||
map oe chain set sort=extension; set sort_reverse=False
|
||||
|
||||
map oS chain set sort=size; set sort_reverse=True
|
||||
map oB chain set sort=basename; set sort_reverse=True
|
||||
map oN chain set sort=natural; set sort_reverse=True
|
||||
map oM chain set sort=mtime; set sort_reverse=True
|
||||
map oC chain set sort=ctime; set sort_reverse=True
|
||||
map oA chain set sort=atime; set sort_reverse=True
|
||||
map oT chain set sort=type; set sort_reverse=True
|
||||
map oE chain set sort=extension; set sort_reverse=True
|
||||
|
||||
map kc get_cumulative_size
|
||||
|
||||
# Settings
|
||||
map zc set collapse_preview!
|
||||
map zd set sort_directories_first!
|
||||
map zh set show_hidden!
|
||||
map <C-h> set show_hidden!
|
||||
copymap <C-h> <backspace>
|
||||
copymap <backspace> <backspace2>
|
||||
map zI set flushinput!
|
||||
map zi set preview_images!
|
||||
map zm set mouse_enabled!
|
||||
map zp set preview_files!
|
||||
map zP set preview_directories!
|
||||
map zs set sort_case_insensitive!
|
||||
map zu set autoupdate_cumulative_size!
|
||||
map zv set use_preview_script!
|
||||
map zf console filter%space
|
||||
copymap zf zz
|
||||
|
||||
# Filter stack
|
||||
map .d filter_stack add type d
|
||||
map .f filter_stack add type f
|
||||
map .l filter_stack add type l
|
||||
map .m console filter_stack add mime%space
|
||||
map .n console filter_stack add name%space
|
||||
map .# console filter_stack add hash%space
|
||||
map ." filter_stack add duplicate
|
||||
map .' filter_stack add unique
|
||||
map .| filter_stack add or
|
||||
map .& filter_stack add and
|
||||
map .! filter_stack add not
|
||||
map .r filter_stack rotate
|
||||
map .c filter_stack clear
|
||||
map .* filter_stack decompose
|
||||
map .p filter_stack pop
|
||||
map .. filter_stack show
|
||||
|
||||
# Bookmarks
|
||||
map `<any> enter_bookmark %any
|
||||
map '<any> enter_bookmark %any
|
||||
map m<any> set_bookmark %any
|
||||
map um<any> unset_bookmark %any
|
||||
|
||||
map m<bg> draw_bookmarks
|
||||
copymap m<bg> um<bg> `<bg> '<bg>
|
||||
|
||||
# Generate all the chmod bindings with some python help:
|
||||
eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
|
||||
|
||||
eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
|
||||
|
||||
# ===================================================================
|
||||
# == Define keys for the console
|
||||
# ===================================================================
|
||||
# Note: Unmapped keys are passed directly to the console.
|
||||
|
||||
# Basic
|
||||
cmap <tab> eval fm.ui.console.tab()
|
||||
cmap <s-tab> eval fm.ui.console.tab(-1)
|
||||
cmap <ESC> eval fm.ui.console.close()
|
||||
cmap <CR> eval fm.ui.console.execute()
|
||||
cmap <C-l> redraw_window
|
||||
|
||||
copycmap <ESC> <C-c>
|
||||
copycmap <CR> <C-j>
|
||||
|
||||
# Move around
|
||||
cmap <up> eval fm.ui.console.history_move(-1)
|
||||
cmap <down> eval fm.ui.console.history_move(1)
|
||||
cmap <left> eval fm.ui.console.move(left=1)
|
||||
cmap <right> eval fm.ui.console.move(right=1)
|
||||
cmap <home> eval fm.ui.console.move(right=0, absolute=True)
|
||||
cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
|
||||
cmap <a-b> eval fm.ui.console.move_word(left=1)
|
||||
cmap <a-f> eval fm.ui.console.move_word(right=1)
|
||||
|
||||
copycmap <a-b> <a-left>
|
||||
copycmap <a-f> <a-right>
|
||||
|
||||
# Line Editing
|
||||
cmap <backspace> eval fm.ui.console.delete(-1)
|
||||
cmap <delete> eval fm.ui.console.delete(0)
|
||||
cmap <C-w> eval fm.ui.console.delete_word()
|
||||
cmap <A-d> eval fm.ui.console.delete_word(backward=False)
|
||||
cmap <C-k> eval fm.ui.console.delete_rest(1)
|
||||
cmap <C-u> eval fm.ui.console.delete_rest(-1)
|
||||
cmap <C-y> eval fm.ui.console.paste()
|
||||
|
||||
# And of course the emacs way
|
||||
copycmap <ESC> <C-g>
|
||||
copycmap <up> <C-p>
|
||||
copycmap <down> <C-n>
|
||||
copycmap <left> <C-b>
|
||||
copycmap <right> <C-f>
|
||||
copycmap <home> <C-a>
|
||||
copycmap <end> <C-e>
|
||||
copycmap <delete> <C-d>
|
||||
copycmap <backspace> <C-h>
|
||||
|
||||
# Note: There are multiple ways to express backspaces. <backspace> (code 263)
|
||||
# and <backspace2> (code 127). To be sure, use both.
|
||||
copycmap <backspace> <backspace2>
|
||||
|
||||
# This special expression allows typing in numerals:
|
||||
cmap <allow_quantifiers> false
|
||||
|
||||
# ===================================================================
|
||||
# == Pager Keybindings
|
||||
# ===================================================================
|
||||
|
||||
# Movement
|
||||
pmap <down> pager_move down=1
|
||||
pmap <up> pager_move up=1
|
||||
pmap <left> pager_move left=4
|
||||
pmap <right> pager_move right=4
|
||||
pmap <home> pager_move to=0
|
||||
pmap <end> pager_move to=-1
|
||||
pmap <pagedown> pager_move down=1.0 pages=True
|
||||
pmap <pageup> pager_move up=1.0 pages=True
|
||||
pmap <C-d> pager_move down=0.5 pages=True
|
||||
pmap <C-u> pager_move up=0.5 pages=True
|
||||
|
||||
copypmap <UP> k <C-p>
|
||||
copypmap <DOWN> j <C-n> <CR>
|
||||
copypmap <LEFT> h
|
||||
copypmap <RIGHT> l
|
||||
copypmap <HOME> g
|
||||
copypmap <END> G
|
||||
copypmap <C-d> d
|
||||
copypmap <C-u> u
|
||||
copypmap <PAGEDOWN> n f <C-F> <Space>
|
||||
copypmap <PAGEUP> p b <C-B>
|
||||
|
||||
# Basic
|
||||
pmap <C-l> redraw_window
|
||||
pmap <ESC> pager_close
|
||||
copypmap <ESC> q Q i <F3>
|
||||
pmap E edit_file
|
||||
|
||||