[rofi & sway] initial config & adjusted sway config

This commit is contained in:
Felix Buehler 2019-05-14 23:58:28 +02:00
parent 2fbc26d2de
commit 61dcf26a2c
5 changed files with 183 additions and 2 deletions

View file

@ -19,6 +19,7 @@
["mkdir -p ~/.config/i3", "Creating i3-config dir"], ["mkdir -p ~/.config/i3", "Creating i3-config dir"],
["mkdir -p ~/.config/i3status", "Creating i3-status dir"], ["mkdir -p ~/.config/i3status", "Creating i3-status dir"],
["mkdir -p ~/.config/redshift/hooks", "Creating redshift dir"], ["mkdir -p ~/.config/redshift/hooks", "Creating redshift dir"],
["mkdir -p ~/.config/rofi", "Creating rofi dir"],
["mkdir -p ~/.config/sway", "Creating sway dir"], ["mkdir -p ~/.config/sway", "Creating sway dir"],
["mkdir -p ~/.config/yay", "Creating yay dir"], ["mkdir -p ~/.config/yay", "Creating yay dir"],
["mkdir -p ~/.vim/", "Creating vim dir"] ["mkdir -p ~/.vim/", "Creating vim dir"]
@ -56,6 +57,9 @@
"~/.profile.d/81-fzf.sh": "shell/fzf.sh", "~/.profile.d/81-fzf.sh": "shell/fzf.sh",
"~/.config/redshift.conf": "redshift/redshift.conf", "~/.config/redshift.conf": "redshift/redshift.conf",
"~/.config/redshift/hooks/hook.sh": "redshift/hook.sh", "~/.config/redshift/hooks/hook.sh": "redshift/hook.sh",
"~/.config/rofi/config.rasi": "rofi/config.rasi",
"~/.config/rofi/arc-dark.rasi": "rofi/arc-dark.rasi",
"~/.config/rofi/system.sh": "rofi/system.sh",
"~/.config/sway/config": "sway/config", "~/.config/sway/config": "sway/config",
"~/.config/sway/thinkman": "sway/thinkman", "~/.config/sway/thinkman": "sway/thinkman",
"~/.tmux.conf": "tmux/tmux.conf", "~/.tmux.conf": "tmux/tmux.conf",

146
rofi/arc-dark.rasi Normal file
View file

@ -0,0 +1,146 @@
/************************************************
* ROFI Color theme
* User: leofa
* Copyright: 2017 leofa
***********************************************/
* {
selected-normal-foreground: rgba ( 249, 249, 249, 100 % );
foreground: rgba ( 196, 203, 212, 100 % );
normal-foreground: @foreground;
alternate-normal-background: rgba ( 64, 69, 82, 59 % );
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 249, 249, 249, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
urgent-foreground: rgba ( 204, 102, 102, 100 % );
alternate-urgent-background: rgba ( 75, 81, 96, 90 % );
active-foreground: rgba ( 101, 172, 255, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 249, 249, 249, 100 % );
alternate-active-background: rgba ( 75, 81, 96, 89 % );
background: rgba ( 45, 48, 59, 95 % );
alternate-normal-foreground: @foreground;
normal-background: @background;
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 64, 132, 214, 100 % );
border-color: rgba ( 124, 131, 137, 100 % );
spacing: 2;
separatorcolor: rgba ( 29, 31, 33, 100 % );
urgent-background: rgba ( 29, 31, 33, 17 % );
selected-urgent-background: rgba ( 165, 66, 66, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 29, 31, 33, 17 % );
selected-active-background: rgba ( 68, 145, 237, 100 % );
}
#window {
background-color: @background;
border: 1;
padding: 5;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 2px 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px 0px 0px ;
border-color: @separatorcolor;
spacing: 2px ;
scrollbar: true;
padding: 2px 0px 0px ;
}
#element {
border: 0;
padding: 1px ;
}
#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-color: @normal-foreground;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px 0px 0px ;
border-color: @separatorcolor;
}
#button {
spacing: 0;
text-color: @normal-foreground;
}
#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;
}

10
rofi/config.rasi Normal file
View file

@ -0,0 +1,10 @@
configuration {
modi: "drun,ssh";
lines: 10;
font: "Fira Sans Mono 18";
show-icons: true;
terminal: "alacritty";
icon-theme: "numix";
sort: true;
theme: "arc-dark";
}

20
rofi/system.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
chosen=$(echo -e "[Cancel]\nLogout\nShutdown\nReboot\nSuspend\nHibernate\nHybrid-sleep\nSuspend-then-hibernate" | rofi -dmenu -i)
if [[ $chosen = "Logout" ]]; then
swaymsg exit
loginctl terminate-session "$(loginctl session-status | awk 'NR==1{print $1}')"
elif [[ $chosen = "Shutdown" ]]; then
systemctl poweroff
elif [[ $chosen = "Reboot" ]]; then
systemctl reboot
elif [[ $chosen = "Suspend" ]]; then
systemctl suspend
elif [[ $chosen = "Hibernate" ]]; then
systemctl hibernate
elif [[ $chosen = "Hybrid-sleep" ]]; then
systemctl hibernate
elif [[ $chosen = "Suspend-then-hibernate" ]]; then
systemctl suspend-then-hibernate
fi

View file

@ -137,8 +137,9 @@ bindsym $mod+y exec ~/.dotfiles/sway/lock.sh
bindsym Scroll_Lock exec ~/.dotfiles/sway/lock.sh bindsym Scroll_Lock exec ~/.dotfiles/sway/lock.sh
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec albert toggle || albert bindsym $mod+d exec rofi -show || albert toggle || albert
bindsym Alt+Space exec albert toggle || albert bindsym $mod+Shift+d exec ~/.dotfiles/rofi/system.sh
bindsym Alt+Space exec rofi -show
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill