mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-21 22:33:42 +01:00
new rofi config + switch back to firefox
This commit is contained in:
parent
c73d598f17
commit
70f9be3e43
@ -2,19 +2,19 @@
|
|||||||
|
|
||||||
# browser
|
# browser
|
||||||
#--------------
|
#--------------
|
||||||
text/html=google-chrome.desktop
|
text/html=firefox.desktop
|
||||||
x-scheme-handler/http=google-chrome.desktop
|
x-scheme-handler/http=firefox.desktop
|
||||||
x-scheme-handler/https=google-chrome.desktop
|
x-scheme-handler/https=firefox.desktop
|
||||||
x-scheme-handler/about=google-chrome.desktop
|
x-scheme-handler/about=firefox.desktop
|
||||||
x-scheme-handler/unknown=google-chrome.desktop
|
x-scheme-handler/unknown=firefox.desktop
|
||||||
x-scheme-handler/webcal=google-chrome.desktop
|
x-scheme-handler/webcal=firefox.desktop
|
||||||
x-scheme-handler/chrome=google-chrome.desktop
|
x-scheme-handler/chrome=firefox.desktop
|
||||||
application/x-extension-htm=google-chrome.desktop
|
application/x-extension-htm=firefox.desktop
|
||||||
application/x-extension-html=google-chrome.desktop
|
application/x-extension-html=firefox.desktop
|
||||||
application/x-extension-shtml=google-chrome.desktop
|
application/x-extension-shtml=firefox.desktop
|
||||||
application/xhtml+xml=google-chrome.desktop
|
application/xhtml+xml=firefox.desktop
|
||||||
application/x-extension-xhtml=google-chrome.desktop
|
application/x-extension-xhtml=firefox.desktop
|
||||||
application/x-extension-xht=google-chrome.desktop
|
application/x-extension-xht=firefox.desktop
|
||||||
|
|
||||||
# apps
|
# apps
|
||||||
#--------------
|
#--------------
|
||||||
@ -32,14 +32,14 @@ inode/director=Nautilus.desktop
|
|||||||
[Added Associations]
|
[Added Associations]
|
||||||
# browser-stuff
|
# browser-stuff
|
||||||
#--------------
|
#--------------
|
||||||
x-scheme-handler/http=google-chrome.desktop;
|
x-scheme-handler/http=firefox.desktop;
|
||||||
x-scheme-handler/https=google-chrome.desktop;
|
x-scheme-handler/https=firefox.desktop;
|
||||||
text/html=google-chrome.desktop;
|
text/html=firefox.desktop;
|
||||||
|
|
||||||
# text
|
# text
|
||||||
#--------------
|
#--------------
|
||||||
text/plain=gnome.gedit.desktop;
|
text/plain=gnome.gedit.desktop;
|
||||||
application/pdf=mupdf.desktop;google-chrome.desktop;
|
application/pdf=mupdf.desktop;firefox.desktop;
|
||||||
text/vnd.qt.linguist=org.gnome.gedit.desktop;
|
text/vnd.qt.linguist=org.gnome.gedit.desktop;
|
||||||
text/x-nfo=gnome.gedit.desktop;
|
text/x-nfo=gnome.gedit.desktop;
|
||||||
text/x-log=code-insiders.desktop;
|
text/x-log=code-insiders.desktop;
|
||||||
|
12
config/rofi
12
config/rofi
@ -1,12 +0,0 @@
|
|||||||
rofi.color-window: #1e1e1e, #333333, #333333
|
|
||||||
rofi.color-normal: #1e1e1e, #848484, #1e1e1e, #333333, #f6f6f7
|
|
||||||
rofi.color-active: #333333, #ef5350, #0000ff, #333333, #f6f6f7
|
|
||||||
rofi.color-urgent: #333333, #ef5350, #0000ff, #333333, #f6f6f7
|
|
||||||
|
|
||||||
rofi.lines: 10
|
|
||||||
rofi.line-padding: 5
|
|
||||||
rofi.font: monospace 10
|
|
||||||
|
|
||||||
rofi.terminal: xfce4-terminal
|
|
||||||
rofi.ssh-client: ssh
|
|
||||||
rofi.ssh-command: {terminal} -e "{ssh-client} {host}"
|
|
162
config/rofi/mytheme.rasi
Normal file
162
config/rofi/mytheme.rasi
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
/*
|
||||||
|
old color theme
|
||||||
|
----------------
|
||||||
|
State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg'
|
||||||
|
----------------------------------------------------------------
|
||||||
|
color-normal: "#1e1e1e, #848484, #1e1e1e, #333333, #f6f6f7";
|
||||||
|
color-urgent: "#333333, #ef5350, #0000ff, #333333, #f6f6f7";
|
||||||
|
color-active: "#333333, #ef5350, #0000ff, #333333, #f6f6f7";
|
||||||
|
color-window: "#1e1e1e, #333333, #333333";
|
||||||
|
*/
|
||||||
|
|
||||||
|
* {
|
||||||
|
/* my vars */
|
||||||
|
background: #1e1e1e;
|
||||||
|
background-color: @background;
|
||||||
|
foreground: #848484;
|
||||||
|
foreground-normal: @foreground;
|
||||||
|
urgent: #333333;
|
||||||
|
active-fg: #ef5350;
|
||||||
|
|
||||||
|
/* background */
|
||||||
|
normal-background: @background;
|
||||||
|
alternate-urgent-background: @background;
|
||||||
|
lightbg: @background;
|
||||||
|
alternate-active-background: @background;
|
||||||
|
alternate-normal-background: @background;
|
||||||
|
selected-normal-background: rgba ( 57, 66, 73, 100 % );
|
||||||
|
|
||||||
|
/* foreground */
|
||||||
|
normal-foreground: @foreground-normal;
|
||||||
|
alternate-normal-foreground: @foreground;
|
||||||
|
selected-normal-foreground: rgba ( 255, 255, 255, 100 % );
|
||||||
|
selected-urgent-foreground: @urgent;
|
||||||
|
active-foreground: @active-fg;
|
||||||
|
urgent-foreground: @red;
|
||||||
|
alternate-urgent-foreground: @urgent-foreground;
|
||||||
|
alternate-active-foreground: @active-foreground;
|
||||||
|
|
||||||
|
|
||||||
|
/* borders */
|
||||||
|
bordercolor: @background;
|
||||||
|
border-color: @background;
|
||||||
|
|
||||||
|
selected-active-foreground: rgba ( 128, 203, 196, 100 % );
|
||||||
|
|
||||||
|
lightfg: rgba ( 88, 104, 117, 100 % );
|
||||||
|
spacing: 2;
|
||||||
|
separatorcolor: rgba ( 30, 37, 41, 100 % );
|
||||||
|
urgent-background: rgba ( 39, 50, 56, 100 % );
|
||||||
|
selected-urgent-background: rgba ( 57, 66, 73, 100 % );
|
||||||
|
active-background: rgba ( 39, 50, 56, 100 % );
|
||||||
|
selected-active-background: rgba ( 57, 66, 73, 100 % );
|
||||||
|
}
|
||||||
|
window {
|
||||||
|
background-color: @background;
|
||||||
|
border: 1;
|
||||||
|
padding: 5;
|
||||||
|
}
|
||||||
|
mainbox {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
message {
|
||||||
|
border: 1px dash 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
textbox {
|
||||||
|
text-color: @foreground;
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
fixed-height: 0;
|
||||||
|
border: 2px dash 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
spacing: 2px ;
|
||||||
|
scrollbar: true;
|
||||||
|
padding: 2px 0px 0px ;
|
||||||
|
}
|
||||||
|
element {
|
||||||
|
border: 0;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
element-text {
|
||||||
|
background-color: inherit;
|
||||||
|
text-color: inherit;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
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: @alternate-normal-background;
|
||||||
|
text-color: @alternate-normal-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.urgent {
|
||||||
|
background-color: @alternate-urgent-background;
|
||||||
|
text-color: @alternate-urgent-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.active {
|
||||||
|
background-color: @alternate-active-background;
|
||||||
|
text-color: @alternate-active-foreground;
|
||||||
|
}
|
||||||
|
scrollbar {
|
||||||
|
width: 4px ;
|
||||||
|
border: 0;
|
||||||
|
handle-width: 8px ;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
mode-switcher {
|
||||||
|
border: 2px dash 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
}
|
||||||
|
button.selected {
|
||||||
|
background-color: @selected-normal-background;
|
||||||
|
text-color: @selected-normal-foreground;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
case-indicator {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
entry {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
prompt {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||||
|
}
|
||||||
|
textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: ":";
|
||||||
|
margin: 0px 0.3em 0em 0em ;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
14
config/rofi/rofi.rasi
Normal file
14
config/rofi/rofi.rasi
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
configuration {
|
||||||
|
modi: "window,run,ssh,combi";
|
||||||
|
font: "monospace 10";
|
||||||
|
terminal: "xfce4-terminal";
|
||||||
|
ssh-client: "ssh";
|
||||||
|
ssh-command: "{terminal} -e "{ssh-client} {host}"";
|
||||||
|
|
||||||
|
/* ! State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg'
|
||||||
|
lines: 10;
|
||||||
|
line-padding: 5;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme "~/.config/rofi/mytheme.rasi"
|
8
dependencies/pacman.txt
vendored
8
dependencies/pacman.txt
vendored
@ -8,7 +8,6 @@ i3lock
|
|||||||
feh
|
feh
|
||||||
scrot
|
scrot
|
||||||
arandr
|
arandr
|
||||||
chromium
|
|
||||||
xfce4-terminal
|
xfce4-terminal
|
||||||
ttf-font-awesome
|
ttf-font-awesome
|
||||||
sushi
|
sushi
|
||||||
@ -71,10 +70,11 @@ w3m
|
|||||||
system-config-printer
|
system-config-printer
|
||||||
nautilus
|
nautilus
|
||||||
nautilus-share
|
nautilus-share
|
||||||
|
wget
|
||||||
|
pyenv
|
||||||
|
jq
|
||||||
|
firefox
|
||||||
dotnet-host
|
dotnet-host
|
||||||
dotnet-runtime
|
dotnet-runtime
|
||||||
dotnet-sdk
|
dotnet-sdk
|
||||||
aspnet-runtime
|
aspnet-runtime
|
||||||
wget
|
|
||||||
pyenv
|
|
||||||
jq
|
|
||||||
|
22
install.sh
22
install.sh
@ -22,7 +22,7 @@ ask() {
|
|||||||
default=
|
default=
|
||||||
fi
|
fi
|
||||||
echo -n "$1 [$prompt] "
|
echo -n "$1 [$prompt] "
|
||||||
read reply </dev/tty
|
read -r reply </dev/tty
|
||||||
|
|
||||||
if [ -z "$reply" ]; then
|
if [ -z "$reply" ]; then
|
||||||
reply=$default
|
reply=$default
|
||||||
@ -38,20 +38,20 @@ ask() {
|
|||||||
|
|
||||||
# delete target, create dirs if they don't exist yet and finally symlink the dir
|
# delete target, create dirs if they don't exist yet and finally symlink the dir
|
||||||
function linkDir {
|
function linkDir {
|
||||||
rm -rf $2;
|
rm -rf "$2";
|
||||||
mkdir -p "${2%/*}"
|
mkdir -p "${2%/*}"
|
||||||
ln -sf $1 $2
|
ln -sf "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
# replace line endings with a space (for use in package managers)
|
# replace line endings with a space (for use in package managers)
|
||||||
function fileToList {
|
function fileToList {
|
||||||
echo $(cat $1 | sed ':a;N;$!ba;s/\n/ /g')
|
echo $(cat "$1" | sed ':a;N;$!ba;s/\n/ /g')
|
||||||
}
|
}
|
||||||
|
|
||||||
# create and copy files to directory
|
# create and copy files to directory
|
||||||
function copyToDir {
|
function copyToDir {
|
||||||
echo $2 | sed 's%/[^/]*$%/%' | xargs mkdir -p
|
echo "$2" | sed 's%/[^/]*$%/%' | xargs mkdir -p
|
||||||
cp $1 $2
|
cp "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
# =======================================
|
# =======================================
|
||||||
@ -69,9 +69,9 @@ function install_fonts {
|
|||||||
# install trizen, a aur helper
|
# install trizen, a aur helper
|
||||||
function install_trizen {
|
function install_trizen {
|
||||||
git clone https://aur.archlinux.org/trizen.git
|
git clone https://aur.archlinux.org/trizen.git
|
||||||
pushd trizen
|
pushd trizen || return
|
||||||
makepkg -si
|
makepkg -si
|
||||||
popd
|
popd || return
|
||||||
sudo rm -dRf trizen/
|
sudo rm -dRf trizen/
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,9 @@ function install_config {
|
|||||||
ln -sf "$PWD"/config/mimeapps.list ~/.config/mimeapps.list
|
ln -sf "$PWD"/config/mimeapps.list ~/.config/mimeapps.list
|
||||||
|
|
||||||
mkdir -p ~/.config/rofi
|
mkdir -p ~/.config/rofi
|
||||||
ln -sf "$PWD"/config/rofi ~/.config/rofi/config
|
ln -sf "$PWD"/config/rofi/rofi.rasi ~/.config/rofi/config.rasi
|
||||||
|
ln -sf "$PWD"/config/rofi/mytheme.rasi ~/.config/rofi/mytheme.rasi
|
||||||
|
|
||||||
ln -sf "$PWD"/config/.gitconfig ~/.gitconfig
|
ln -sf "$PWD"/config/.gitconfig ~/.gitconfig
|
||||||
ln -sf "$PWD"/config/.npmrc ~/.npmrc
|
ln -sf "$PWD"/config/.npmrc ~/.npmrc
|
||||||
ln -sf "$PWD"/config/user-dirs.dirs ~/.config/user-dirs.dirs
|
ln -sf "$PWD"/config/user-dirs.dirs ~/.config/user-dirs.dirs
|
||||||
@ -209,7 +211,7 @@ fi
|
|||||||
clear
|
clear
|
||||||
computer
|
computer
|
||||||
# ask for pc specific install
|
# ask for pc specific install
|
||||||
prompt=`echo $'\n> ' Please select a specific computer to install or q to finish the install`
|
prompt=$(echo $'\n> ' "Please select a specific computer to install or q to finish the install")
|
||||||
|
|
||||||
PS3="$prompt: "
|
PS3="$prompt: "
|
||||||
select opt in "$PWD/computers"/*; do
|
select opt in "$PWD/computers"/*; do
|
||||||
|
Loading…
Reference in New Issue
Block a user