Closed pinpox closed 5 years ago
Hi,
yes, that should be possible, provided the font you use contains a glyph that models that slant (i.e. something that has the foreground color on one side, the background color on the other, and is separated by a forward-slash style). I have done some small amount of googling, but wasn't able to come up with an example, unfortunately. But if you have that, then it should definitely work.
On May 23, 2019, 22:12, at 22:12, Pablo Ovelleiro Corral notifications@github.com wrote:
Q A Version Git master (AUR -git package) Support Question
My texteditors statusbar looks like this: Is it possible to get those slanted separators in bumblebee-status aswell?
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/tobi-wan-kenobi/bumblebee-status/issues/390
I've now spent considerable time googling, but was not able to find such a font.
Can you please let me know which font / statusbar theme (I assume you're using (neo)vim?) you are using?
I'd really like to be able to give you a definite answer.
Thanks!
Hey, it's not vim, it's emacs. The status line is this one https://github.com/TheBB/spaceline with the following configuration (the "slant" sets the separator)
I found this font (which now seems to be part of nerd fonts but I have not been able to get it to work, even though it has a very similar symbol. If you figure out how to do it, please let me know!
(use-package spaceline
:ensure t
:init
(require 'spaceline-config)
(setq spaceline-highlight-face-func 'spaceline-highlight-face-evil-state)
(setq powerline-default-separator 'slant))
Oh, apologies :)
Thanks for the link to the fonts, that should be the explanation - can you please try to set the "defaults separator" in themes/icons/awesome-fonts.json to "\ue0ba"? That should give you a forward slant.
The trick is that the font defines some glyphs as described here: https://github.com/ryanoasis/powerline-extra-symbols/blob/master/README.md ("Glyphs"), and in bumblebee-status theme configuration, you can reference glyphs using their unicode code by using "\u<4 digit code>".
Hope this does what you need!
I can't find the correct symbol. \ue0be looks like this:
Here's what the bar looks for me using \ue0be as separator:
I think that's what you have in mind, right? Can you maybe let me know your "font" spec in the i3 config? For me, it's "pango:Inconsolata 12" and produces the output you see above.
(note that you'll see some artifacts at the top and bottom, as the i3bar adds a 1px border that cannot be changed)
This is my complete i3 config
EDIT: I also tried your font spec (inconsolata) It looks the same, just different font
Hi,
I'm not sure that "Terminus" supports those glyphs.
Can you try to stick a "font pango:Hack 12" into the "bar" configuration?
For an example, you can look at https://github.com/tobi-wan-kenobi/dotfiles/blob/master/.i3/config.eDP-1.
Hope this helps!
Sent from TypeApp
On Jun 5, 2019, 11:28, at 11:28, Pablo Ovelleiro Corral notifications@github.com wrote:
This is my complete i3 config
# vim:filetype=i3 set $mod Mod4 bindsym $mod+Shift+s sticky toggle font pango:Terminus 14px for_window [window_role="pop-up"] floating enable new_window pixel 2 new_float pixel 2 exec srandrd display_handler exec_always --no-startup-id xbindkeys -f .xbindkeys_config/speed_c/pablo exec_always setxkbmap us -variant colemak -option "caps:escape" exec_always nitrogen --restore exec nm-applet exec_always ~/.screenlayout/default.sh exec_always ~/.local/bin/launch_polybar bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioNext exec playerctl next bindsym XF86AudioStop exec playerctl stop bindsym XF86AudioPlay exec playerctl play-pause bindsym --release $mod+n exec xdotool type --delay 80 --clearmodifiers --window $(xdotool getwindowfocus) '¯\_(ツ)_/¯' bindsym $mod+p exec rofi -show run -lines 7 -eh 1 -bw 0 -fullscreen -padding 200 bindsym $mod+Shift+p exec rofi-pass -show combi -lines 7 -eh 3 -bw 0 -matching fuzzy bindsym $mod+Shift+x exec ~/.local/bin/lock bindsym $mod+Shift+Escape exec xkill bindsym --release Shift+Print exec import png:- | xclip -selection c -t image/png bindsym --release Print exec ~/.local/bin/shadow-scrot.sh bindcode 156 exec --no-startup-id " termite -e hollywood" bindsym $mod+space exec emacsclient -nc # Make the currently focused window a scratchpad bindsym $mod+minus move scratchpad # Show the first scratchpad window bindsym $mod+plus scratchpad show # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec termite bindsym $mod+Shift+Return exec termite -e nvim # kill focused window bindsym $mod+Shift+q kill # change focus bindsym $mod+j focus left bindsym $mod+Tab focus right bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+Control+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container bindsym $mod+d focus child # switch to workspace bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 bindsym $mod+3 workspace 3 bindsym $mod+4 workspace 4 bindsym $mod+5 workspace 5 bindsym $mod+6 workspace 6 bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 bindsym $mod+9 workspace 9 bindsym $mod+0 workspace 10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1 bindsym $mod+Shift+2 move container to workspace 2 bindsym $mod+Shift+3 move container to workspace 3 bindsym $mod+Shift+4 move container to workspace 4 bindsym $mod+Shift+5 move container to workspace 5 bindsym $mod+Shift+6 move container to workspace 6 bindsym $mod+Shift+7 move container to workspace 7 bindsym $mod+Shift+8 move container to workspace 8 bindsym $mod+Shift+9 move container to workspace 9 bindsym $mod+Shift+0 move container to workspace 10 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) # These bindings trigger as soon as you enter the resize mode mode "resize" { # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" bindsym --release $mod+shift+minus exec xdotool type --clearmodifiers --window $(xdotool getwindowfocus) '¯\_(ツ)_/¯' for_window [class="^.*"] border pixel 2 gaps inner 6 gaps outer 0 smart_gaps on smart_borders no_gaps # variable Xresource/backup set_from_resource $black color0 #0000ff set_from_resource $red color1 #0000ff set_from_resource $green color2 #0000ff set_from_resource $yellow color3 #0000ff set_from_resource $blue color4 #0000ff set_from_resource $magenta color5 #0000ff set_from_resource $cyan color6 #0000ff set_from_resource $white color7 #0000ff set_from_resource $grey color8 #0000ff # class border backgr. text indicator client.focused $blue $blue $black $blue client.focused_inactive $grey $grey $black $black client.unfocused $grey $black $blue $black client.urgent $red1 $red $magenta $red bar { status_command ~/bumblebee-status/bumblebee-status -m battery date time pasink dnf -p root.path=/ time.format="%H:%M CW %V" -t onedark-powerline }
onedark-powerline.json:
{ "icons": [ "awesome-fonts" ], "defaults": { "separator-block-width": 0, "warning": { "fg": "#282C34", "bg": "#E5C07B" }, "critical": { "fg": "#282C34", "bg": "#E06C75" } }, "cycle": [ {"fg": "#ABB2BF", "bg": "#4B5263"}, {"fg": "#ABB2BF", "bg": "#282C34"} ], "dnf": { "good": { "fg": "#282C34", "bg": "#98C379" } }, "pacman": { "good": { "fg": "#282C34", "bg": "#98C379" } }, "battery": { "charged": { "fg": "#282C34", "bg": "#98C379" }, "AC": { "fg": "#282C34", "bg": "#98C379" } } }
And the modified
themes/icons/awesome-fonts.json
{ "defaults": { "separator": "\ue0ba", "padding": " ", "unknown": { "prefix": "" } }, "date": { "prefix": "" }, "time": { "prefix": "" }, "datetime": { "prefix": "" }, "memory": { "prefix": "" }, "cpu": { "prefix": "" }, "disk": { "prefix": "" }, "dnf": { "prefix": "" }, "apt": { "prefix": "" }, "pacman": { "prefix": "" }, "brightness": { "prefix": "" }, "load": { "prefix": "" }, "layout": { "prefix": "" }, "layout-xkb": { "prefix": "" }, "notmuch_count": { "empty": {"prefix": "\uf0e0" }, "items": {"prefix": "\uf0e0" } }, "todo": { "empty": {"prefix": "" }, "items": {"prefix": "" }, "uptime": {"prefix": "" } }, "zpool": { "poolread": {"prefix": "→ "}, "poolwrite": {"prefix": "← "}, "ONLINE": {"prefix": ""}, "FAULTED": {"prefix": "!"}, "DEGRADED": {"prefix": "!"} }, "cmus": { "playing": { "prefix": "" }, "paused": { "prefix": "" }, "stopped": { "prefix": "" }, "prev": { "prefix": "" }, "next": { "prefix": "" }, "shuffle-on": { "prefix": "" }, "shuffle-off": { "prefix": "" }, "repeat-on": { "prefix": "" }, "repeat-off": { "prefix": "" } }, "gpmdp": { "playing": { "prefix": "" }, "paused": { "prefix": "" }, "stopped": { "prefix": "" }, "prev": { "prefix": "" }, "next": { "prefix": "" } }, "pasink": { "muted": { "prefix": "" }, "unmuted": { "prefix": "" } }, "amixer": { "muted": { "prefix": "" }, "unmuted": { "prefix": "" } }, "pasource": { "muted": { "prefix": "" }, "unmuted": { "prefix": "" } }, "kernel": { "prefix": "\uf17c" }, "nic": { "wireless-up": { "prefix": "" }, "wireless-down": { "prefix": "" }, "wired-up": { "prefix": "" }, "wired-down": { "prefix": "" }, "tunnel-up": { "prefix": "" }, "tunnel-down": { "prefix": "" } }, "bluetooth": { "ON": { "prefix": "" }, "OFF": { "prefix": "" }, "?": { "prefix": "" } }, "battery": { "charged": { "prefix": "", "suffix": "" }, "AC": { "suffix": "" }, "charging": { "prefix": [ "", "", "", "", "" ], "suffix": "" }, "discharging-10": { "prefix": "", "suffix": "" }, "discharging-25": { "prefix": "", "suffix": "" }, "discharging-50": { "prefix": "", "suffix": "" }, "discharging-80": { "prefix": "", "suffix": "" }, "discharging-100": { "prefix": "", "suffix": "" }, "unlimited": { "prefix": "", "suffix": "" }, "estimate": { "prefix": "" }, "unknown-10": { "prefix": "", "suffix": "" }, "unknown-25": { "prefix": "", "suffix": "" }, "unknown-50": { "prefix": "", "suffix": "" }, "unknown-80": { "prefix": "", "suffix": "" }, "unknown-100": { "prefix": "", "suffix": "" } }, "battery_all": { "charged": { "prefix": "", "suffix": "" }, "AC": { "suffix": "" }, "charging": { "prefix": [ "", "", "", "", "" ], "suffix": "" }, "discharging-10": { "prefix": "", "suffix": "" }, "discharging-25": { "prefix": "", "suffix": "" }, "discharging-50": { "prefix": "", "suffix": "" }, "discharging-80": { "prefix": "", "suffix": "" }, "discharging-100": { "prefix": "", "suffix": "" }, "unlimited": { "prefix": "", "suffix": "" }, "estimate": { "prefix": "" }, "unknown-10": { "prefix": "", "suffix": "" }, "unknown-25": { "prefix": "", "suffix": "" }, "unknown-50": { "prefix": "", "suffix": "" }, "unknown-80": { "prefix": "", "suffix": "" }, "unknown-100": { "prefix": "", "suffix": "" } }, "caffeine": { "activated": {"prefix": " " }, "deactivated": { "prefix": " " } }, "xrandr": { "on": { "prefix": " "}, "off": { "prefix": " " }, "refresh": { "prefix": "" } }, "redshift": { "day": { "prefix": "" }, "night": { "prefix": "" }, "transition": { "prefix": "" } }, "docker_ps": { "prefix": "" }, "sensors": { "prefix": "" }, "sensors2": { "temp": { "prefix": "" }, "fan": { "prefix": "" }, "cpu": { "prefix": "" } }, "traffic":{ "rx": { "prefix": "" }, "tx": { "prefix": "" } }, "mpd": { "playing": { "prefix": "" }, "paused": { "prefix": "" }, "stopped": { "prefix": "" }, "prev": { "prefix": "" }, "next": { "prefix": "" }, "shuffle-on": { "prefix": "" }, "shuffle-off": { "prefix": "" }, "repeat-on": { "prefix": "" }, "repeat-off": { "prefix": "" } }, "arch-update": { "prefix": " " }, "github": { "prefix": " " }, "spotify": { "prefix": " " }, "publicip": { "prefix": " " }, "weather": { "clouds": { "prefix": "" }, "rain": { "prefix": "" }, "snow": { "prefix": "" }, "clear": { "prefix": "" }, "thunder": { "prefix": "" } }, "taskwarrior": { "prefix": " " }, "progress": { "copying": { "prefix": "" } }, "git": { "main": { "prefix": "" }, "new": { "prefix": "" }, "modified": { "prefix": "" }, "deleted": { "prefix": "" } }, "dunst": { "muted": { "prefix": ""}, "unmuted": { "prefix": "" } }, "pihole": { "enabled": { "prefix": "" }, "disabled": { "prefix": "" } } }
-- You are receiving this because you were assigned. Reply to this email directly or view it on GitHub: https://github.com/tobi-wan-kenobi/bumblebee-status/issues/390#issuecomment-499009236
Nope, no change:
I don't want to bother you too much, it's not that important. If you come across a solution, let me know. But thanks for all the effords in any case!
No worries, your problem intrigues me, I'd really like to get to the bottom of this, as long as you have the patience for it :)
Stupid questions: From the screenshot, it looks like the slant is now also not working in emacs, is that right?
Also, I think you need to have specially patched fonts for the slants to show up. So my guess would be that you use different fonts for emacs (i.e. the terminal you run emacs in) and for i3bar. Can you check that and try setting the i3bar font configuration to the same font as the terminal?
Timeout :-) If there's anything else you need, please just reopen.
Support Question
My texteditors statusbar looks like this:
Is it possible to get those slanted separators in bumblebee-status aswell?