0
0
Fork 0
mirror of https://github.com/stronk-dev/Tokyo-Night-Linux.git synced 2024-12-19 20:54:43 -05:00

More dark and blue

This commit is contained in:
Marco van Dijk 2021-07-14 16:57:27 +02:00
parent d4c76462ca
commit 392cf3e991
11 changed files with 251 additions and 114 deletions

View file

@ -1,7 +1,7 @@
*.foreground: #ABB2BF *.foreground: #c0caf5
*.background: #1A1C1E *.background: #1a1b26
*.cursorColor: #5C6370 *.cursorColor: #c0caf5
*.highlightColor:#3A3F4B *.highlightColor:#364A82
!*fading: 40 !*fading: 40
!*fadeColor: S_base03 !*fadeColor: S_base03
@ -20,29 +20,32 @@
! 7 White 15 White ! 7 White 15 White
! Black colours ! Black colours
*.color0: #1A1C1E *.color0: #1D202F
*.color8: #151718 *.color8: #414868
! Red colours ! Red colours
*.color1: #E06C75 *.color1: #f7768e
*.color9: #E06C75 *.color9: #f7768e
! Yellow colours ! Yellow colours
*.color2: #98C379 *.color2: #9ece6a
*.color10: #98C379 *.color10: #9ece6a
! Green colours ! Green colours
*.color3: #D19A66 *.color3: #e0af68
*.color11: #D19A66 *.color11: #e0af68
! Blue colours ! Blue colours
*.color4: #61AFEF *.color4: #7aa2f7
*.color12: #61AFEF *.color12: #7aa2f7
! Magenta (pink, !green) colours ! Magenta (pink, !green) colours
*.color5: #C678DD *.color5: #bb9af7
*.color13: #C678DD *.color13: #bb9af7
! Cyan (blue + green) ! Cyan (blue + green)
*.color6: #56B6C2 *.color6: #7dcfff
*.color14: #56B6C2 *.color14: #7dcfff
! White colours ! White colours
*.color7: #ABB2BF *.color7: #a9b1d6
*.color15: #FFFFFF *.color15: #c0caf5
*.color16: #ff9e64
*.color17: #db4b4b
! xterm.vt100.faceName: Terminus:style=Regular:size=10 ! xterm.vt100.faceName: Terminus:style=Regular:size=10
! xterm.vt100.faceNameDoublesize: Cyberbit:style=Regular:size=10 ! xterm.vt100.faceNameDoublesize: Cyberbit:style=Regular:size=10
@ -61,7 +64,8 @@ URxvt*urgentOnBell: true
URxvt*scrollTtyOutput: false URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true URxvt*scrollTtyKeypress: true
URxvt.font: xft:Consolas:pixelsize=12, xft:Segoe UI Symbol:style=Regular:pixelsize=12, xft:Unifont:pixelsize=12 URxvt.font: xft:bitstream vera sans mono:size=12:antialias=true
URxvt.boldFont: xft:bitstream vera sans mono:bold:size=12:antialias=true
URxvt.letterSpace : -2 ! Put characters slightly closer together URxvt.letterSpace : -2 ! Put characters slightly closer together
URxvt.termName : rxvt-unicode-256color URxvt.termName : rxvt-unicode-256color
!Urxvt*termName: screen-256color !Urxvt*termName: screen-256color

10
.bash_profile Normal file
View file

@ -0,0 +1,10 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
#startx
if [ -n "$DESKTOP_SESSION" ];then
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
fi

View file

@ -7,4 +7,9 @@
output eDP-1 enable mode 1920x1080@60.008Hz position 0,2160 output eDP-1 enable mode 1920x1080@60.008Hz position 0,2160
} }
{
output "Goldstar Company Ltd LG ULTRAGEAR 103NTXR8Q458" mode 2560x1440@99.946Hz position 0,0
output eDP-1 enable mode 1920x1080@60.008Hz position 0,1440
}

View file

@ -1,5 +1,6 @@
######### Configuration ######### ######### Configuration #########
### the easy stuff ### ### the easy stuff ###
font pango: SF Pro Display 14
# Key to do all the things (Mod1=Alt, Mod4=Super/Windows) # Key to do all the things (Mod1=Alt, Mod4=Super/Windows)
set $mod Mod4 set $mod Mod4
@ -26,8 +27,8 @@
# Borders # Borders
# Also removes all title bars # Also removes all title bars
#for_window [class="^.*"] border pixel 2 for_window [class="^.*"] border pixel 2
default_border pixel 3 default_border pixel 2
# Floating windows get no borders >:( # Floating windows get no borders >:(
default_floating_border pixel 0 default_floating_border pixel 0
@ -43,12 +44,12 @@
# Gaps # Gaps
# I like big gaps and I can not lie # I like big gaps and I can not lie
set $default_gaps_inner 12 set $default_gaps_inner 10
set $default_gaps_outer 12 set $default_gaps_outer 2
gaps inner $default_gaps_inner gaps inner $default_gaps_inner
gaps outer $default_gaps_outer gaps outer $default_gaps_outer
gaps top 0 gaps top 0
# gaps bottom 10 gaps bottom 10
# Hide gaps when there is only 1 window # Hide gaps when there is only 1 window
smart_gaps on smart_gaps on
@ -165,9 +166,9 @@
bindsym XF86MonBrightnessUp exec light -A 5 bindsym XF86MonBrightnessUp exec light -A 5
# Screenshot / share shortcuts # Screenshot / share shortcuts
bindsym Print exec "grim ~/Pictures/Screenshot-$(date -Iseconds | cut -d'+' -f1).png" bindsym Print exec "grim /home/marco/screenShares/Screenshot-$(date -Iseconds | cut -d'+' -f1).png"
bindsym $mod+Print exec "grim -g "$(slurp)" - | wl-copy" bindsym $mod+Print exec "grim -g "$(slurp)" - | wl-copy"
bindsym Shift+Print exec "wf-recorder -f ~/Pictures/Screenshot-$(date -Iseconds | cut -d'+' -f1).mp4" bindsym $mod+Shift+Print exec "wf-recorder -a -o eDP-1 -f /home/marco/screenShares/Screenstream-$(date -Iseconds | cut -d'+' -f1).mp4"
######### Resizing Containers ######### ######### Resizing Containers #########
@ -213,6 +214,9 @@
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable for_window [app_id="firefox" title="Picture-in-Picture"] floating enable
for_window [app_id="firefox" title="Pushbullet Mozilla Firefox"] floating enable for_window [app_id="firefox" title="Pushbullet Mozilla Firefox"] floating enable
for_window [app_id="firefox" title="About Mozilla Firefox"] floating enable for_window [app_id="firefox" title="About Mozilla Firefox"] floating enable
for_window [class="Gimp-2.10"] floating disable
for_window [class="Gimp-2.10" title="Create a New Image"] floating enable
for_window [class="Gimp-2.10" title="Brushes - Layers | Toolbox - Tool Options"] floating enable
# Brave, chrome, chromium # Brave, chrome, chromium
for_window [title="Picture-in-picture"] floating enable for_window [title="Picture-in-picture"] floating enable
@ -222,29 +226,42 @@
# Assign programs to workspace # Assign programs to workspace
assign [class="firefox"] → number 2 assign [class="firefox"] → number 2
assign [app_id="firefox"] → number 2
assign [class="code"] → number 4 assign [class="code"] → number 4
assign [class="discord"] → number 5 assign [class="discord"] → number 5
assign [class="Spotify"] → number 5 assign [class="Spotify"] → number 6
assign [class="Nemo"] → number 3 assign [class="Audacity"] → number 6
for_window [class="Gimp"] floating disable assign [class="Gmpc"] → number 6
for_window [class="Gimp-2.10"] floating disable assign [app_id="ario"] → number 6
assign [class="Thunderbird"] → number 8
assign [class="Bitwarden"] → number 9
# Some programs can be stubborn since they open a splash window before opening
for_window [class="discord"] move to workspace number 5
for_window [class="Spotify"] move to workspace number 6
for_window [class="Gimp-2.10"] move to workspace number 7
######### Launch Programs ######### ######### Launch Programs #########
### We need dis stuff ### ### We need dis stuff ###
# Notification thing
exec mako &
# Applets # Applets
exec nm-applet --indicator & exec nm-applet --indicator &
exec blueman-applet & exec blueman-applet &
# Arch update notifications
exec kalu &
# Clipboard manager # Clipboard manager
exec wl-paste -t text --watch clipman store exec wl-paste -t text --watch clipman store &
# fingerprint reader # fingerprint reader
exec lxsession & exec lxsession &
# Auto set monitor properties # Auto set monitor properties
exec kanshi & exec_always pkill kanshi; exec kanshi &
# Autotiling based on window dimensions # Autotiling based on window dimensions
exec autotiling & exec autotiling &
@ -255,6 +272,9 @@
exec code & exec code &
exec discord & exec discord &
exec spotify & exec spotify &
exec ario &
exec gimp &
exec bitwarden &
# Finally start waybar # Finally start waybar
exec /home/marco/.config/waybar/launch.sh & exec /home/marco/.config/waybar/launch.sh &

View file

@ -1,9 +1,10 @@
{ {
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"height": 40,
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["custom/recorder", "tray", "pulseaudio", "backlight", "temperature", "custom/cpu_speed", "battery", "network", "custom/powermenu"], "modules-right": ["custom/recorder", "tray", "pulseaudio", "backlight", "temperature", "cpu", "memory", "battery", "network", "custom/powermenu"],
"sway/mode": { "sway/mode": {
"format": " {}" "format": " {}"
}, },
@ -13,19 +14,21 @@
"disable-markup": false, "disable-markup": false,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"1": "1 <span font='Font Awesome 5 Free 11'></span>", "1": "1 <span font='Font Awesome 5 Free 14'></span>",
"2": "2 <span font='Font Awesome 5 Free 11'></span>", "2": "2 <span font='Font Awesome 5 Free 14'></span>",
"3": "3 <span font='Font Awesome 5 Free 11'></span>", "3": "3 <span font='Font Awesome 5 Free 14'></span>",
"4": "4 <span font='Font Awesome 5 Free 11'></span>", "4": "4 <span font='Font Awesome 5 Free 14'></span>",
"5": "5 <span font='Font Awesome 5 Free 11'></span>", "5": "5 <span font='Font Awesome 5 Free 14'></span>",
"6": "6 <span font='Font Awesome 5 Free 11'></span>", "6": "6 <span font='Font Awesome 5 Free 14'></span>",
"7": "6 <span font='Font Awesome 5 Free 11'></span>", "7": "7 <span font='Font Awesome 5 Free 14'></span>",
"8": "6 <span font='Font Awesome 5 Free 11'></span>" "8": "8 <span font='Font Awesome 5 Free 14'></span>",
"9": "9 <span font='Font Awesome 5 Free 14'></span>",
"10": "0 <span font='Font Awesome 5 Free 14'></span>"
} }
}, },
"tray": { "tray": {
"icon-size": 20, "icon-size": 20,
"spacing": 10 "spacing": 8
}, },
"sway/window": { "sway/window": {
"max-length": 60, "max-length": 60,
@ -34,41 +37,43 @@
}, },
"clock": { "clock": {
"format": "{:%a %d %b - %H:%M}", "format": "{:%a %d %b - %H:%M}",
"tooltip": false, "tooltip": false
"on-click": "gnome-calendar"
}, },
"custom/cpu_speed": { "cpu": {
"interval": 10, "interval": 5,
"return-type": "json", "format": "︁ {}%",
"exec": "~/.config/waybar/modules/cpu_speed.sh", "max-length": 10
"format": "<span font='Font Awesome 5 Free 11'>{icon}</span> {}", },
"format-icons": [""], "memory": {
"escape": true, "interval": 15,
"on-click": "urxvt -e htop" "format": "<span font='Font Awesome 5 Free 9'>︁</span> {used:0.1f}G/{total:0.1f}G",
"tooltip": false
}, },
"custom/powermenu": { "custom/powermenu": {
"return-type": "json", "return-type": "json",
"exec": "~/.config/waybar/modules/powermenu.sh", "exec": "/home/marco/.config/waybar/modules/powermenu.sh",
"format": "<span font='Font Awesome 5 Free 9'>{icon}</span> {}", "format": "<span font='Font Awesome 5 Free 9'>{icon}</span> {}",
"format-icons": [""], "format-icons": [""],
"interval": 3600, "interval": 3600,
"escape": true, "escape": true,
"on-click": "home/marco/.config/wofi/wofi-power.sh" "on-click": "/home/marco/.config/wofi/wofi-power.sh"
}, },
"custom/recorder": { "custom/recorder": {
"format": "", "format": "!",
"return-type": "json", "return-type": "json",
"interval": 4, "interval": 3,
"exec": "echo '{\"class\": \"recording\"}'", "exec": "echo '{\"class\": \"recording\"}'",
"exec-if": "pgrep wf-recorder" "exec-if": "pgrep wf-recorder",
"tooltip": false,
"on-click": "killall -s SIGINT wf-recorder"
}, },
"battery": { "battery": {
"format": "<span font='Font Awesome 5 Free 11'>{icon}</span> {capacity}% - {time}", "format": "<span font='Font Awesome 5 Free 11'>{icon}</span> {capacity}%{time}",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
"format-time": "{H}h{M}m", "format-time": " ({H}h{M}m)",
"format-charging": "<span font='Font Awesome 5 Free'></span> <span font='Font Awesome 5 Free 11'>{icon}</span> {capacity}% - {time}", "format-charging": "<span font='Font Awesome 5 Free'></span> <span font='Font Awesome 5 Free 11'>{icon}</span> {capacity}% - {time}",
"format-full": "<span font='Font Awesome 5 Free'></span> <span font='Font Awesome 5 Free 11'>{icon}</span> Charged", "format-full": "<span font='Font Awesome 5 Free'></span> <span font='Font Awesome 5 Free 11'>{icon}</span> Charged",
"interval": 30, "interval": 15,
"states": { "states": {
"warning": 25, "warning": 25,
"critical": 10 "critical": 10
@ -77,17 +82,16 @@
}, },
"network": { "network": {
"format": "{icon}", "format": "{icon}",
"format-alt": "{ipaddr}/{cidr} {icon}", "format-alt": "<span font='Font Awesome 5 Free 10'>︁</span> {ipaddr}/{cidr} {icon}",
"format-alt-click": "click-right", "format-alt-click": "click-left",
"format-wifi": "<span font='Font Awesome 5 Free 10'></span> {essid} ({signalStrength}%)", "format-wifi": "<span font='Font Awesome 5 Free 10'></span> {essid} ({signalStrength}%)",
"format-ethernet": " {ifname}", "format-ethernet": "<span font='Font Awesome 5 Free 10'>︁</span> {ifname}",
"format-disconnected": "⚠ Disconnected", "format-disconnected": "⚠ Disconnected",
"on-click": "urxvt -e /home/marco/sway/scripts/network-manager",
"tooltip": false "tooltip": false
}, },
"pulseaudio": { "pulseaudio": {
"format": "<span font='Font Awesome 5 Free 11'>{icon:2}</span> {volume:4}%", "format": "<span font='Font Awesome 5 Free 11'>{icon:2}</span>{volume}%",
"format-alt": "<span font='Font Awesome 5 Free 11'>{icon:2}</span> {volume:4}%", "format-alt": "<span font='Font Awesome 5 Free 11'>{icon:2}</span>{volume}%",
"format-alt-click": "click-right", "format-alt-click": "click-right",
"format-muted": "<span font='Font Awesome 5 Free 11'></span>", "format-muted": "<span font='Font Awesome 5 Free 11'></span>",
"format-icons": { "format-icons": {
@ -99,10 +103,10 @@
"tooltip": false "tooltip": false
}, },
"backlight": { "backlight": {
"format": "{icon}", "format": "{icon} {percent}%",
"format-alt": "{percent}% {icon}", "format-alt": "{icon}",
"format-alt-click": "click-right", "format-alt-click": "click-left",
"format-icons": ["", ""], "format-icons": ["", ""],
"on-scroll-up": "light -A 1", "on-scroll-up": "light -A 1",
"on-scroll-down": "light -U 1" "on-scroll-down": "light -U 1"
}, },
@ -111,6 +115,7 @@
"critical-threshold": 75, "critical-threshold": 75,
"interval": 5, "interval": 5,
"format": "{icon} {temperatureC}°", "format": "{icon} {temperatureC}°",
"tooltip": false,
"format-icons": [ "format-icons": [
"", // Icon: temperature-empty "", // Icon: temperature-empty
"", // Icon: temperature-quarter "", // Icon: temperature-quarter

View file

@ -1,12 +0,0 @@
#!/bin/bash
class=cpu_speed
speed_mhz=$(lscpu | grep "CPU MHz" | sed --expression "s/CPU MHz:[[:space:]]*//g" | xargs printf "%.*f\n" 0)
# speed_ghz=`echo $(($speed_mhz / 1000))`
speed_ghz=`bc -l <<< "$speed_mhz / 1000"`
info=$(echo $speed_ghz | xargs printf "%.*f\n" 2)
echo -e "{\"text\":\""$info GHz"\", \"class\":\""$class"\"}"

View file

@ -1,6 +1,6 @@
#waybar { #waybar {
font-family: "Fira Sans SemiBold"; font-family: "SF Pro Display", Cantarell, Noto Sans, sans-serif;
font-size: 13px; font-size: 16px;
} }
#window { #window {
@ -14,7 +14,7 @@ window#waybar {
text-shadow: none; text-shadow: none;
transition-duration: 0s; transition-duration: 0s;
color: rgba(217, 216, 216, 1); color: rgba(217, 216, 216, 1);
background: rgba(0, 0, 0, 0.87); background: rgba(0, 0, 0, 0.72);
} }
#workspaces { #workspaces {
@ -24,8 +24,9 @@ window#waybar {
#workspaces button { #workspaces button {
padding: 0 8px; padding: 0 8px;
color: rgba(217, 216, 216, 0.4); color: rgba(217, 216, 216, 0.4);
border: 3px solid rgba(217, 216, 216, 0); border: 3px solid rgba(9, 85, 225, 0);
border-radius: 10px; border-radius: 10px;
min-width: 33px;
} }
#workspaces button.visible { #workspaces button.visible {
@ -33,39 +34,35 @@ window#waybar {
} }
#workspaces button.focused { #workspaces button.focused {
border-top: 3px solid rgba(217, 216, 216, 1); border-top: 3px solid #4470ad;
border-bottom: 3px solid rgba(217, 216, 216, 1); border-bottom: 3px solid #4470ad;
} }
#workspaces button.urgent { #workspaces button.urgent {
background-color: #943432; background-color: #a96d1f;
color: white; color: white;
} }
#workspaces button:hover { #workspaces button:hover {
box-shadow: inherit; box-shadow: inherit;
border-color: #d1be8b; border-color: #1e88e5;
color: #888888; color: #1e88e5;
} }
/* Repeat style here to ensure properties are overwritten as there's no !important and button:hover above resets the colour */ /* Repeat style here to ensure properties are overwritten as there's no !important and button:hover above resets the colour */
#workspaces button.focused { #workspaces button.focused {
color: white; color: #4470ad;
} }
#pulseaudio { #pulseaudio {
/* font-size: 26px; */ /* font-size: 26px; */
} }
#custom-cpu_speed {
min-width: 82px;
}
#custom-recorder { #custom-recorder {
font-size: 18px; font-size: 18px;
margin: 2px 7px 0px 7px; margin: 2px 7px 0px 7px;
color:#c9545d; color:rgba(238, 46, 36, 1);
} }
#tray, #tray,

View file

@ -2,9 +2,9 @@
* { * {
al: #00000000; al: #00000000;
bg: #1A1C1EFF; bg: #1a1b26FF;
bga: #151718FF; bga: #414868FF;
fga: #ABB2BFFF; fga: #c0caf5FF;
fg: #ABB2BFFF; fg: #c0caf5FF;
ac: #4470adFF; ac: #364A82FF;
} }

View file

@ -16,9 +16,9 @@ window {
transparency: "real"; transparency: "real";
background-color: @bg; background-color: @bg;
text-color: @fg; text-color: @fg;
border: 0px 0px 4px 0px; border: 1px 3px 5px 1px;
border-color: @ac; border-color: @ac;
border-radius: 0px; border-radius: 2px;
width: 600px; width: 600px;
location: center; location: center;
x-offset: 0; x-offset: 0;

View file

@ -0,0 +1,107 @@
configuration {
font: "Iosevka Nerd Font 10";
show-icons: true;
icon-theme: "Papirus";
display-drun: "";
drun-display-format: "{name}";
disable-history: false;
fullscreen: false;
hide-scrollbar: true;
sidebar-mode: false;
}
@import "colors.rasi"
window {
transparency: "real";
background-color: @bg;
text-color: @fg;
border: 1px 3px 5px 1px;
border-color: @ac;
border-radius: 2px;
width: 150px;
location: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: false;
padding: 2px 0px 0px 4px;
background-color: @ac;
text-color: @ac;
font: "feather 12";
}
entry {
background-color: @al;
text-color: @fg;
placeholder-color: @fg;
expand: true;
horizontal-align: 0;
placeholder: "Search...";
padding: 2px 0px 0px 6px;
blink: true;
}
inputbar {
children: [ prompt, entry ];
background-color: @bga;
text-color: @fg;
expand: false;
enabled: false;
border: 0px;
border-radius: 0px;
border-color: @ac;
margin: 0px;
padding: 8px;
}
listview {
background-color: @al;
padding: 0px;
columns: 1;
lines: 6;
spacing: 6px;
cycle: true;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @al;
border: 0px;
border-radius: 0px;
border-color: @ac;
children: [ inputbar, listview ];
spacing: 6px;
padding: 6px;
}
element {
background-color: @al;
text-color: @fga;
orientation: horizontal;
border-radius: 0px;
padding: 8px;
}
element-icon {
size: 24px;
border: 0px;
}
element-text {
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 0px 2.5px 0px 2.5px;
}
element selected {
background-color: @bga;
text-color: @fg;
border: 0px 0px 0px 0px;
border-radius: 0px;
border-color: @ac;
}

View file

@ -1,15 +1,16 @@
#!/bin/sh #!/bin/sh
poweroff_command="systemctl poweroff" Shutdown_command="systemctl poweroff"
reboot_command="systemctl reboot" Reboot_command="systemctl reboot"
logout_command="swaymsg exit" Logout_command="swaymsg exit"
hibernate_command="systemctl hibernate" Hibernate_command="systemctl hibernate"
suspend_command="systemctl suspend" Suspend_command="systemctl suspend"
Back_command=""
# you can customise the rofi command all you want ... # you can customise the rofi command all you want ...
rofi_command="rofi -width 10 -hide-scrollbar -bg #586e75 -opacity 100 -padding 5 -theme ~/.config/wofi/launcher.rasi" rofi_command="rofi -theme /home/marco/.config/wofi/launcherSmoll.rasi"
options=$'poweroff\nreboot\nlogout\nhibernate\nsuspend' options=$'Back\nShutdown\nLogout\nReboot\nHibernate\nSuspend'
# ... because the essential options (-dmenu and -p) are added here # ... because the essential options (-dmenu and -p) are added here
eval \$"$(echo "$options" | $rofi_command -dmenu -p "")_command" eval \$"$(echo "$options" | $rofi_command -dmenu -p "")_command"